Ë
    ��h¶  ã                   óJ   — d dl mZ d dlmZmZ ddlmZ ddlmZ	 d„ Z
d„ Zd„ Zy	)
é    )Úabsolute_import)Ú!MultipartInvariantViolationDefectÚStartBoundaryNotFoundDefecté   )ÚHeaderParsingError)Úhttp_clientc                 óÊ   — 	 | 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    ú_/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/response.pyÚis_fp_closedr   	   s{   € ðð �|‰|‹~ÐøÜò Ùðúðà�z‰zÐøÜò Ùðúðð �v‰v˜ˆ~ÐøÜò Øä
Ð@Ó
AÐAðús)   ‚ ’	�¢. ®	:¹:¾A Á	A"Á!A"c                 ó’  — t        | t        j                  «      s#t        dj	                  t        | «      «      «      ‚t        | dd«      }t        | dd«      }d}|r/| j                  «       s |«       }t        |t        t        f«      r|}|r%|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 {0}.ÚdefectsNÚget_payload)r   Úunparsed_data)Ú
isinstanceÚhttplibÚHTTPMessageÚ	TypeErrorÚformatÚtypeÚgetattrÚis_multipartÚbytesÚstrr   r   r   )Úheadersr   r   r   ÚpayloadÚdefects         r   Úassert_header_parsingr#   (   sÏ   € ô �gœw×2Ñ2Ô3ÜÐ<×CÑCÄDÈÃMÓRÓSÐSä�g˜y¨$Ó/€GÜ˜' =°$Ó7€Kà€MÙð ×#Ñ#Ô%Ù!“mˆGä˜'¤E¬3 <Ô0Ø '�Ùð "ö
àÜØÔ4Ô6WÐXôò ð
ˆð 
ñ ‘-Ü ¨ÀÔNÐNð  ùò
s   ÂCc                 ój   — | j                   }t        |t        «      r|dk(  S |j                  «       dk(  S )zõ
    Checks whether the request of a response has been a HEAD-request.
    Handles the quirks of AppEngine.

    :param http.client.HTTPResponse response:
        Response to check if the originating request
        used 'HEAD' as a method.
    é   ÚHEAD)Ú_methodr   ÚintÚupper)ÚresponseÚmethods     r   Úis_response_to_headr,   ^   s4   € ð ×Ñ€FÜ�&œ#ÔØ˜‰{ÐØ�<‰<‹>˜VÑ#Ð#ó    N)Ú
__future__r   Úemail.errorsr   r   Ú
exceptionsr   Úpackages.six.movesr   r   r   r#   r,   © r-   r   ú<module>r3      s#   ðÝ &ç Wå +Ý 7òBò>3Oól$r-   