| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/urllib3/__pycache__/ |
Upload File : |
U
"go � @ s� d dl mZ d dlZd dlZd dlZd dlmZ d dlZd dlmZ ddl m
Z
e�d�d Zd d
� Z
dd� Zd
d� Zddd�ZdS )� )�absolute_importN)�BytesIO)�b� )�RequestFieldzutf-8� c C s$ t �t�d��} tjs | �d�} | S )zN
Our embarrassingly-simple replacement for mimetools.choose_boundary.
� �ascii)�binasciiZhexlify�os�urandom�sixZPY2�decode)�boundary� r �2/usr/lib/python3/dist-packages/urllib3/filepost.py�choose_boundary s
r c c sJ t | t�rt�| �}nt| �}|D ]"}t |t�r8|V q"tj|� V q"dS )z�
Iterate over fields.
Supports list of (k, v) tuples and dicts, and lists of
:class:`~urllib3.fields.RequestField`.
N)�
isinstance�dictr
� iteritems�iterr Zfrom_tuples)�fields�i�fieldr r r �iter_field_objects s
r c C s, t | t�rdd� t�| �D �S dd� | D �S )a-
.. deprecated:: 1.6
Iterate over fields.
The addition of :class:`~urllib3.fields.RequestField` makes this function
obsolete. Instead, use :func:`iter_field_objects`, which returns
:class:`~urllib3.fields.RequestField` objects.
Supports list of (k, v) tuples and dicts.
c s s | ]\}}||fV qd S �Nr ��.0�k�vr r r � <genexpr>: s ziter_fields.<locals>.<genexpr>c s s | ]\}}||fV qd S r r r r r r r <