+
    i                     L    ^ RI Ht ^ RIHtHt ^RIHt ^RIHt	 R t
R tR tR# )	    )absolute_import)!MultipartInvariantViolationDefectStartBoundaryNotFoundDefect)HeaderParsingError)http_clientc                     V P                  4       #   \         d     Mi ; i T P                  #   \         d     Mi ; i T P                  RJ #   \         d     Mi ; i\	        R4      h)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   &h/home/wkmabra/.openclaw/workspace/venv/lib/python3.14/site-packages/pip/_vendor/urllib3/util/response.pyis_fp_closedr   	   s}     ||~ zz  vv~  @
AAs*      0 >>A AAc                   \        V \        P                  4      '       g$   \        RP	                  \        V 4      4      4      h\        V RR4      p\        V RR4      pRpV'       d<   V P                  4       '       g&   V! 4       p\        V\        \        34      '       d   TpV'       d0   V Uu. uF#  p\        V\        \        34      '       d   K!  VNK%  	  ppV'       g	   V'       d   \        WR7      hR# u upi )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     gw2233<CCDMRSSgy$/G'=$7KM ##%%!mG'E3<00 ' "
!46WX F! 	 
 - NN  
s   /C8C8c                v    V P                   p\        V\        4      '       d   V^8H  # VP                  4       R8H  # )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*   ^   s7     F&#{<<>V##    N)
__future__r   email.errorsr   r   
exceptionsr   packages.six.movesr   r   r   r"   r*    r+   r   <module>r1      s#    & W + 7B>3Ol$r+   