/usr/lib/python2.6/site-packages/requests/packages/urllib3
NameSizeModeActions
contrib/-0755rm
packages/-0755rm
util/-0755rm
connection.py90110644editdlrm
connection.pyc82690644editdlrm
connectionpool.py303190644editdlrm
connectionpool.pyc248680644editdlrm
exceptions.py43740644editdlrm
exceptions.pyc91910644editdlrm
fields.py58330644editdlrm
fields.pyc67670644editdlrm
filepost.py22810644editdlrm
filepost.pyc33150644editdlrm
poolmanager.py94060644editdlrm
poolmanager.pyc102160644editdlrm
request.py57510644editdlrm
request.pyc60380644editdlrm
response.py164590644editdlrm
response.pyc158140644editdlrm
_collections.py104540644editdlrm
_collections.pyc132730644editdlrm
__init__.py20550644editdlrm
__init__.pyc27660644editdlrm
Edit: /usr/lib/python2.6/site-packages/requests/packages/urllib3/fields.pyc (6767B)
Ñò "s s"\ s%s="%s"tasciisutf-8s%s*=%s(tanytencodetUnicodeEncodeErrorRtPY3temailtutilstencode_rfc2231(tnameRtresult((RsB/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/fields.pytformat_header_params  t RequestFieldcBsYeZdZddd„Zed„ƒZd„Zd„Zd„Z dddd„Z RS(sK A data container for request body parameters. :param name: The name of this request field. :param data: The data/value body. :param filename: An optional filename of the request field. :param headers: An optional dict-like object of headers to initially use for the field. cCsB||_||_||_h|_|ot|ƒ|_ndS(N(t_namet _filenametdatatheaderstdict(tselfRRRR((sB/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/fields.pyt__init__>s     cCst|tƒoBt|ƒdjo|\}}}qd|\}}t|ƒ}nd}d}|}|||d|ƒ}|id|ƒ|S(s³ A :class:`~urllib3.fields.RequestField` factory from old-style tuple parameters. Supports constructing :class:`~urllib3.fields.RequestField` from parameter of key/value strings AND key/filetuple. A filetuple is a (filename, data, MIME type) tuple where the MIME type is optional. For example:: 'foo': 'bar', 'fakefile': ('foofile.txt', 'contents of foofile'), 'realfile': ('barfile.txt', open('realfile').read()), 'typedfile': ('bazfile.bin', open('bazfile').read(), 'image/jpeg'), 'nonamefile': 'contents of nonamefile field', Field names and filenames must be unicode. iRt content_typeN(t isinstancettupletlenRtNonetmake_multipart(tclst fieldnameRRRRt request_param((sB/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/fields.pyt from_tuplesFs cCs t||ƒS(s Overridable helper function to format a single header parameter. :param name: The name of the parameter, a string expected to be ASCII only. :param value: The value of the parameter, provided as a unicode string. (R(RRR((sB/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/fields.pyt _render_parths cCstg}|}t|tƒo|iƒ}nx8|D]0\}}|o|i|i||ƒƒq3q3Wdi|ƒS(sO Helper function to format and quote a single header. Useful for single headers that are composed of multiple items. E.g., 'Content-Disposition' fields. :param header_parts: A sequence of (k, v) typles or a :class:`dict` of (k, v) to format as `k1="v1"; k2="v2"; ...`. s; (RRtitemstappendR&tjoin(Rt header_partstpartstiterableRR((sB/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/fields.pyt _render_partsss  !cCsËg}dddg}xF|D]>}|ii|tƒo"|id||i|fƒqqWxP|iiƒD]?\}}||jo&|o|id||fƒq­qnqnW|idƒdi|ƒS(s= Renders the headers for this request field. sContent-Dispositions Content-TypesContent-Locations%s: %ss (RtgettFalseR(R'R)(Rtlinest sort_keystsort_keyt header_namet header_value((sB/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/fields.pytrender_headers‰s&  # c Csu|pd|id<|idcdid|id|ifd|iffƒgƒ7<||id<||ids