ó
    Ð]j.  ã                  óV   • S SK Jr  S SKJr  S SKJrJr  SSKJ	r	  S	S jr
S
S jrSS jrg)é    )ÚannotationsN)Ú!MultipartInvariantViolationDefectÚStartBoundaryNotFoundDefecté   )ÚHeaderParsingErrorc                óÒ   •  U R                  5       $ ! [         a     Of = f U R                  $ ! [         a     Of = f U R                  SL $ ! [         a     Of = f[	        S5      e)zd
Checks whether a given file-like object is closed.

:param obj:
    The file-like object to check.
Nz)Unable to determine whether fp is closed.)ÚisclosedÚAttributeErrorÚclosedÚfpÚ
ValueError)Úobjs    ÚR/home/mande/repo/quber/.venv/lib/python3.13/site-packages/urllib3/util/response.pyÚis_fp_closedr   	   s}   € ðð �|‰|‹~ÐøÜó Ùðúðà�z‰zÐøÜó Ùðúðð �v‰v˜ˆ~ÐøÜó Ùðúô Ð@Ó
AÐAs*   ‚ ’
ž£/ ¯
<»<Á A Á
AÁAc                ó¤  • [        U [        R                  5      (       d  [        S[	        U 5       S35      eSnU R                  5       (       d-  U R                  5       n[        U[        [        45      (       a  UnU R                   Vs/ s H"  n[        U[        [        45      (       a  M   UPM$     nnU(       d  U(       a	  [        XAS9egs  snf )a"  
Asserts whether all headers have been successfully parsed.
Extracts encountered errors from the result of parsing headers.

Only works on Python 3.

:param http.client.HTTPMessage headers: Headers to verify.

:raises urllib3.exceptions.HeaderParsingError:
    If parsing errors are found.
zexpected httplib.Message, got Ú.N)ÚdefectsÚunparsed_data)Ú
isinstanceÚhttplibÚHTTPMessageÚ	TypeErrorÚtypeÚis_multipartÚget_payloadÚbytesÚstrr   r   r   r   )Úheadersr   ÚpayloadÚdefectr   s        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÷
÷ 	Ù%ð ð ö –-Ü ¨ÑNÐNð  ùòs   Â
CÂ-Cc                ó@   • U R                   nUR                  5       S:H  $ )z¼
Checks whether the request of a response has been a HEAD-request.

:param http.client.HTTPResponse response:
    Response to check if the originating request
    used 'HEAD' as a method.
ÚHEAD)Ú_methodÚupper)ÚresponseÚ
method_strs     r   Úis_response_to_headr(   [   s#   € ð ×!Ñ!€JØ×ÑÓ Ñ'Ð'ó    )r   ÚobjectÚreturnÚbool)r   zhttplib.HTTPMessager+   ÚNone)r&   zhttplib.HTTPResponser+   r,   )Ú
__future__r   Úhttp.clientÚclientr   Úemail.errorsr   r   Ú
exceptionsr   r   r!   r(   © r)   r   Ú<module>r4      s#   ðÝ "å ß Wå +ôBô>0Oõf
(r)   