/usr/lib/python2.6/site-packages/urllib3/util
Edit: /usr/lib/python2.6/site-packages/urllib3/util/response.pyc (2128B)
Ņō
;vVc @ s? d d k l Z d d k l Z d Z d Z d Z d S( i ( t http_client( t HeaderParsingErrorc C sX y | i SWn t j
o n Xy | i d j SWn t j
o n Xt d d S( st
Checks whether a given file-like object is closed.
:param obj:
The file-like object to check.
s) Unable to determine whether fp is closed.N( t closedt AttributeErrort fpt Nonet
ValueError( t obj( ( s6 /tmp/pip-build-cD3xZi/urllib3/urllib3/util/response.pyt is_fp_closed s c C s t | t i p t d i t | n t | d d } t | d d } d } | o
| } n | p | o t d | d | n d S( sP
Asserts whether all headers have been successfully parsed.
Extracts encountered errors from the result of parsing headers.
Only works on Python 3.
:param headers: Headers to verify.
:type headers: `httplib.HTTPMessage`.
:raises urllib3.exceptions.HeaderParsingError:
If parsing errors are found.
s! expected httplib.Message, got {}.t defectst get_payloadt
unparsed_dataN( t
isinstancet httplibt HTTPMessaget TypeErrort formatt typet getattrR R ( t headersR R
R ( ( s6 /tmp/pip-build-cD3xZi/urllib3/urllib3/util/response.pyt assert_header_parsing s
c C s4 | i } t | t o | d j S| i d j S( sē
Checks, wether a the request of a response has been a HEAD-request.
Handles the quirks of AppEngine.
:param conn:
:type conn: :class:`httplib.HTTPResponse`
i t HEAD( t _methodR t intt upper( t responset method( ( s6 /tmp/pip-build-cD3xZi/urllib3/urllib3/util/response.pyt is_response_to_head= s N( t packages.six.movesR R
t
exceptionsR R R R ( ( ( s6 /tmp/pip-build-cD3xZi/urllib3/urllib3/util/response.pyt
s