Ë
    R>{i.  ã                  óP   — d dl mZ d dlmZ d dlmZmZ ddlm	Z	 d	d„Z
d
d„Zdd„Zy)é    )ÚannotationsN)Ú!MultipartInvariantViolationDefectÚStartBoundaryNotFoundDefecté   )ÚHeaderParsingErrorc                óÊ   — 	 | j                  «       S # t        $ r Y nw xY w	 | j                  S # t        $ r Y nw xY w	 | j                  du S # t        $ r Y t	        d«      ‚w xY w)zt
    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    úS/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/urllib3/util/response.pyÚis_fp_closedr   	   s{   € ðð �|‰|‹~ÐøÜò Ùðúðà�z‰zÐøÜò Ùðúðð �v‰v˜ˆ~ÐøÜò Øä
Ð@Ó
AÐAðús)   ‚ ’	�¢. ®	:¹:¾A Á	A"Á!A"c                óf  — t        | t        j                  «      st        dt	        | «      › d�«      ‚d}| j                  «       s(| j                  «       }t        |t        t        f«      r|}| j                  D �cg c]  }t        |t        t        f«      s|‘Œ }}|s|rt        ||¬«      ‚yc c}w )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ÜÐ8¼¸g»¸ÀqÐIÓJÐJà€Mð ×ÑÔ!Ø×%Ñ%Ó'ˆä�g¤¤s˜|Ô,Ø#ˆMð —o‘oöàÜØÔ0Ô2SÐTô
ò 	ð€Gð ñ ‘-Ü ¨ÀÔNÐNð  ùòs   Á;B.c                ó@   — | j                   }|j                  «       dk(  S )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)   