Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
response.cpython-313.pyc37 linesDownload Raw Back to __pycache__
1�

2��j.
��V�SSKJr SSKJr SSKJrJr SSKJ	r	 S	Sjr3S4SjrSSjrg)�)�annotationsN)�!MultipartInvariantViolationDefect�StartBoundaryNotFoundDefect�)�HeaderParsingErrorc���UR5$![a Of=fUR$![a Of=fURSL$![a Of=f[	S5e)zd5Checks whether a given file-like object is closed.6 7:param obj:8    The file-like object to check.9Nz)Unable to determine whether fp is closed.)�isclosed�AttributeError�closed�fp�10ValueError)�objs �[D:\code\apps\devtools\python\user_packages\Python313\site-packages\urllib3/util/response.py�is_fp_closedr	s}��
��|�|�~����
��
��
��z�z����
��
��
��v�v��~����
��
���@�11A�As*��12��/�13<�<�
A�14A�Ac��[U[R5(d[S[	U5S35eSnUR5(d-UR
5n[U[[45(aUnURVs/sH"n[U[[45(aM UPM$ nnU(dU(a	[XAS9egs snf)a"15Asserts whether all headers have been successfully parsed.16Extracts encountered errors from the result of parsing headers.17 18Only works on Python 3.19 20:param http.client.HTTPMessage headers: Headers to verify.21 22:raises urllib3.exceptions.HeaderParsingError:23    If parsing errors are found.24zexpected httplib.Message, got �.N)�defects�
unparsed_data)
�25isinstance�httplib�HTTPMessage�	TypeError�type�is_multipart�get_payload�bytes�strrrrr)�headersr�payload�defectrs     r�assert_header_parsingr!(s����g�w�2�2�3�3��8��g���q�I�J�J��M����!�!��%�%�'���g��s�|�,�,�#�M��o�o��%�F���0�2S�T�26�	�%����-� ��N�N� ��s�27C
�-C
c�@�URnUR5S:H$)z�28Checks whether the request of a response has been a HEAD-request.29 30:param http.client.HTTPResponse response:31    Response to check if the originating request32    used 'HEAD' as a method.33�HEAD)�_method�upper)�response�34method_strs  r�is_response_to_headr([s#���!�!�J������'�'�)r�object�return�bool)rzhttplib.HTTPMessager+�None)r&zhttplib.HTTPResponser+r,)
�35__future__r�http.client�clientr�email.errorsrr�36exceptionsrrr!r(�r)r�<module>r4s#��"��W�+�B�>0O�f37(r)
codekingpro/portable-devtools · Team Ai