Current File : //proc/self/root/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/urllib3/filepost.pyo |
�
�t�_c @@ s� d d l m Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m
Z
d d l m Z e j
d � d Z d
� Z d � Z d � Z d d
� Z d S( i ( t absolute_importN( t BytesIOi ( t six( t b( t RequestFields utf-8i c C@ s7 t j t j d � � } t j s3 | j d � } n | S( sN
Our embarrassingly-simple replacement for mimetools.choose_boundary.
i t ascii( t binasciit hexlifyt ost urandomR t PY2t decode( t boundary( ( sM /opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/urllib3/filepost.pyt choose_boundary s c c@ sg t | t � r! t j | � } n t | � } x3 | D]+ } t | t � rQ | Vq4 t j | � Vq4 Wd S( s�
Iterate over fields.
Supports list of (k, v) tuples and dicts, and lists of
:class:`~urllib3.fields.RequestField`.
N( t
isinstancet dictR t iteritemst iterR t from_tuples( t fieldst it field( ( sM /opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/urllib3/filepost.pyt iter_field_objects s
c C@ s4 t | t � r&