MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.117.171.149
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/response.pyo
�
r2Wc@@sOddlmZddlmZddlmZd�Zd�Zd�Z	dS(	i(tabsolute_importi(thttp_client(tHeaderParsingErrorcC@sTy|jSWntk
rnXy|jdkSWntk
rCnXtd��dS(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(tclosedtAttributeErrortfptNonet
ValueError(tobj((sW/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/response.pytis_fp_closeds

cC@s�t|tj�s0tdjt|����nt|dd�}t|dd�}d}|rl|�}n|sx|r�td|d|��ndS(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 {0}.tdefectstget_payloadt
unparsed_dataN(	t
isinstancethttplibtHTTPMessaget	TypeErrortformatttypetgetattrRR(theadersR
RR((sW/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/response.pytassert_header_parsings	cC@s2|j}t|t�r"|dkS|j�dkS(s�
    Checks whether the request of a response has been a HEAD-request.
    Handles the quirks of AppEngine.

    :param conn:
    :type conn: :class:`httplib.HTTPResponse`
    itHEAD(t_methodR
tinttupper(tresponsetmethod((sW/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/response.pytis_response_to_head>s		
N(
t
__future__Rtpackages.six.movesRRt
exceptionsRR	RR(((sW/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/response.pyt<module>s
		

MMCT - 2023