| Server IP : 104.129.129.72 / Your IP : 216.73.216.229 Web Server : LiteSpeed System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : answe8064 ( 1002) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/urllib3/__pycache__/ |
Upload File : |
o
&�jio � @ s� d dl mZ d dlZd dlZd dlZd dlmZ ddlmZ d dl Z d dl m
Z
e�d�d Zd d
� Z
dd� Zd
d� Zddd�ZdS )� )�absolute_importN)�BytesIO� )�RequestField)�bzutf-8� c C s$ t �t�d��} tjs| �d�} | S )zN
Our embarrassingly-simple replacement for mimetools.choose_boundary.
� �ascii)�binascii�hexlify�os�urandom�six�PY2�decode)�boundary� r �2/usr/lib/python3/dist-packages/urllib3/filepost.py�choose_boundary s
r c c sL � t | t�rt�| �}nt| �}|D ]}t |t�r|V qtj|� V qdS )z�
Iterate over fields.
Supports list of (k, v) tuples and dicts, and lists of
:class:`~urllib3.fields.RequestField`.
N)�
isinstance�dictr � iteritems�iterr �from_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 � � | ] \}}||fV qd S �Nr ��.0�k�vr r r � <genexpr>: � � ziter_fields.<locals>.<genexpr>c s r r r r r r r r$ <