MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.221.240.145
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pyc
�
r2Wc@@s�ddlmZddlZddlmZddlmZddlmZddl	m
Z
ddlmZej
d	�d
Zd�Zd�Zd
�Zdd�ZdS(i(tabsolute_importN(tuuid4(tBytesIOi(tsix(tb(tRequestFieldsutf-8icC@s
t�jS(sM
    Our embarassingly-simple replacement for mimetools.choose_boundary.
    (Rthex(((sR/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pytchoose_boundaryscc@sgt|t�r!tj|�}nt|�}x3|D]+}t|t�rQ|Vq4tj|�Vq4WdS(s�
    Iterate over fields.

    Supports list of (k, v) tuples and dicts, and lists of
    :class:`~urllib3.fields.RequestField`.

    N(t
isinstancetdictRt	iteritemstiterRtfrom_tuples(tfieldstitfield((sR/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pytiter_field_objectss
cC@s4t|t�r&d�tj|�D�Sd�|D�S(s-
    .. 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.
    cs@s!|]\}}||fVqdS(N((t.0tktv((sR/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pys	<genexpr>6scs@s!|]\}}||fVqdS(N((RRR((sR/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pys	<genexpr>8s(RR	RR
(R
((sR/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pytiter_fields)scC@st�}|dkr!t�}nx�t|�D]�}|jtd|��t|�j|j��|j}t	|t
�r�t|�}nt	|tj
�r�t|�j|�n
|j|�|jd�q.W|jtd|��td|�}|j�|fS(sJ
    Encode a dictionary of ``fields`` using the multipart/form-data MIME format.

    :param fields:
        Dictionary of fields or list of (key, :class:`~urllib3.fields.RequestField`).

    :param boundary:
        If not specified, then a random boundary will be generated using
        :func:`mimetools.choose_boundary`.
    s--%s
s
s--%s--
s multipart/form-data; boundary=%sN(RtNoneRRtwriteRtwritertrender_headerstdataRtinttstrRt	text_typetgetvalue(R
tboundarytbodyRRtcontent_type((sR/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pytencode_multipart_formdata;s 		
(t
__future__RtcodecstuuidRtioRtpackagesRtpackages.sixRR
RtlookupRRRRRR!(((sR/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pyt<module>s			

MMCT - 2023