| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.6/site-packages/pip/_vendor/urllib3/__pycache__/ |
Upload File : |
3
�N�a� � @ s� d dl mZ d dlZd dlZd dlZd dlmZ ddlmZ ddl m
Z
ddlmZ ej
d�d Zd
d� Zdd
� Zdd� Zddd�ZdS )� )�absolute_importN)�BytesIO� )�RequestField)�six)�bzutf-8� c C s$ t jtjd��} tjs | jd�} | S )zN
Our embarrassingly-simple replacement for mimetools.choose_boundary.
� �ascii)�binasciiZhexlify�os�urandomr ZPY2�decode)�boundary� r �/usr/lib/python3.6/filepost.py�choose_boundary s
r c c sN t | t�rtj| �}nt| �}x*|D ]"}t |t�r:|V q$tj|� V q$W 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� tj| �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 )Nr )r r r r r r r <