%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/
Upload File :
Create Path :
Current File : //opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pyo

�
�wMVc@s�ddlZddlZddlmZddlmZddlmZddlm	Z	ddl
mZejd�d	Z
d
�Zd�Zd�Zdd
�ZdS(i����N(tuuid4(tBytesIOi(tsix(tb(tRequestFieldsutf-8icCs
t�jS(sM
    Our embarassingly-simple replacement for mimetools.choose_boundary.
    (Rthex(((s_/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pytchoose_boundarysccsgt|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((s_/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pytiter_field_objectss
cCs4t|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.
    css!|]\}}||fVqdS(N((t.0tktv((s_/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pys	<genexpr><scss!|]\}}||fVqdS(N((RRR((s_/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pys	<genexpr>>s(RRRR	(R((s_/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pytiter_fields/scCst�}|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((s_/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pytencode_multipart_formdataAs 		
(tcodecst	mimetypestuuidRtioRtpackagesRtpackages.sixRRRtlookupRRRRRR (((s_/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/filepost.pyt<module>s			

Zerion Mini Shell 1.0