D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib
/
python2.7
/
site-packages
/
urllib3
/
Filename :
filepost.pyo
back
Copy
� nf�\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 r3 | j d � } n | S( sN Our embarrassingly-simple replacement for mimetools.choose_boundary. i t ascii( t binasciit hexlifyt ost urandomR t PY3t decode( t boundary( ( s4 /usr/lib/python2.7/site-packages/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( ( s4 /usr/lib/python2.7/site-packages/urllib3/filepost.pyt iter_field_objects s c C@ s4 t | t � r&