관리-도구
편집 파일: filepost.cpython-33.pyc
� 7�Re� c @ s� 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 d d l m Z e j d � d Z d d � Z d d � Z d d � Z d d d � Z d S( i N( u uuid4( u BytesIOi ( u six( u b( u RequestFieldu utf-8i c C s t � j S( uM Our embarassingly-simple replacement for mimetools.choose_boundary. ( u uuid4u hex( ( ( uG /tmp/pip-zej_zi-build/pip/_vendor/requests/packages/urllib3/filepost.pyu choose_boundary s u choose_boundaryc c sg t | t � r! t j | � } n t | � } x3 | D]+ } t | t � rQ | Vq4 t j | � Vq4 Wd S( u� Iterate over fields. Supports list of (k, v) tuples and dicts, and lists of :class:`~urllib3.fields.RequestField`. N( u isinstanceu dictu sixu iteritemsu iteru RequestFieldu from_tuples( u fieldsu iu field( ( uG /tmp/pip-zej_zi-build/pip/_vendor/requests/packages/urllib3/filepost.pyu iter_field_objects s u iter_field_objectsc C s: t | t � r) d d � t j | � D� Sd d � | D� S( u- .. 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! | ] \ } } | | f Vq d S( N( ( u .0u ku v( ( uG /tmp/pip-zej_zi-build/pip/_vendor/requests/packages/urllib3/filepost.pyu <genexpr><