
    q"h                      \   S SK Jr  SSKJr   " S S\5      r " S S\5      r " S S	\5      r	 " S
 S\	5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r\r " S S\
5      r " S S\
5      r " S S\5      r " S S\5      r " S S\\
5      r " S S\5      r " S  S!\\	5      r " S" S#\	5      r " S$ S%\	5      r " S& S'\\5      r " S( S)\5      r " S* S+\5      r " S, S-\5      r " S. S/\5      r " S0 S1\5      r " S2 S3\5      r  " S4 S5\5      r! " S6 S7\5      r" " S8 S9\5      r# " S: S;\5      r$ " S< S=\\5      r% " S> S?\5      r& " S@ SA\\5      r " SB SC\\5      r' " SD SE\5      r( " SF SG\)\5      r* " SH SI\5      r+ " SJ SK\5      r, " SL SM\5      r-gN)O    )absolute_import   )IncompleteReadc                       \ rS rSrSrSrg)	HTTPError   z#Base exception used by this module. N__name__
__module____qualname____firstlineno____doc____static_attributes__r	       P/var/www/html/env/lib/python3.13/site-packages/pip/_vendor/urllib3/exceptions.pyr   r      s    -r   r   c                       \ rS rSrSrSrg)HTTPWarning   z!Base warning used by this module.r	   Nr
   r	   r   r   r   r      s    +r   r   c                   $    \ rS rSrSrS rS rSrg)	PoolError   z/Base exception for errors caused within a pool.c                 H    Xl         [        R                  X< SU< 35        g )Nz: )poolr   __init__)selfr   messages      r   r   PoolError.__init__   s    	4T7!;<r   c                     U R                   S4$ )N)NN	__class__r   s    r   
__reduce__PoolError.__reduce__   s    ~~|++r   )r   Nr   r   r   r   r   r   r#   r   r	   r   r   r   r      s    9=,r   r   c                   $    \ rS rSrSrS rS rSrg)RequestError    z8Base exception for PoolErrors that have associated URLs.c                 <    X l         [        R                  XU5        g N)urlr   r   )r   r   r+   r   s       r   r   RequestError.__init__#   s    4w/r   c                 8    U R                   S U R                  S 44$ r*   )r!   r+   r"   s    r   r#   RequestError.__reduce__'   s    ~~dhh555r   )r+   Nr%   r	   r   r   r'   r'       s    B06r   r'   c                       \ rS rSrSrSrg)SSLError,   z9Raised when SSL certificate fails in an HTTPS connection.r	   Nr
   r	   r   r   r0   r0   ,       Cr   r0   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )
ProxyError2   z,Raised when the connection to a proxy fails.c                 <   > [         [        U ]
  " X/UQ76   X l        g r*   )superr4   r   original_error)r   r   errorargsr!   s       r   r   ProxyError.__init__5   s    j$(?$?#r   )r8   r   r   r   r   r   r   r   __classcell__r    s   @r   r4   r4   2   s    6$ $r   r4   c                       \ rS rSrSrSrg)DecodeError:   z;Raised when automatic decoding based on Content-Type fails.r	   Nr
   r	   r   r   r?   r?   :       Er   r?   c                       \ rS rSrSrSrg)ProtocolError@   z>Raised when something unexpected happens mid-request/response.r	   Nr
   r	   r   r   rC   rC   @   s    Hr   rC   c                   "    \ rS rSrSrSS jrSrg)MaxRetryErrorM   zRaised when the maximum number of retries is exceeded.

:param pool: The connection pool
:type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool`
:param string url: The requested Url
:param exceptions.Exception reason: The underlying error

Nc                 R    X0l         SU< SU< S3n[        R                  XX$5        g )NzMax retries exceeded with url: z (Caused by ))reasonr'   r   )r   r   r+   rJ   r   s        r   r   MaxRetryError.__init__W   s!    HKVTd#7r   )rJ   r*   r   r   r   r   r   r   r   r	   r   r   rF   rF   M   s    8r   rF   c                   "    \ rS rSrSrSS jrSrg)HostChangedError_   z?Raised when an existing pool gets a request for a foreign host.c                 F    SU-  n[         R                  XX$5        X0l        g )Nz)Tried to open a foreign host with url: %s)r'   r   retries)r   r   r+   rQ   r   s        r   r   HostChangedError.__init__b   s!    =Cd#7r   )rQ   N)   rL   r	   r   r   rN   rN   _   s
    Ir   rN   c                       \ rS rSrSrSrg)TimeoutStateErrorh   z1Raised when passing an invalid state to a timeoutr	   Nr
   r	   r   r   rU   rU   h   s    ;r   rU   c                       \ rS rSrSrSrg)TimeoutErrorn   zRaised when a socket timeout error occurs.

Catching this error will catch both :exc:`ReadTimeoutErrors
<ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
r	   Nr
   r	   r   r   rX   rX   n   s     	r   rX   c                       \ rS rSrSrSrg)ReadTimeoutErrorx   zFRaised when a socket timeout occurs while receiving data from a serverr	   Nr
   r	   r   r   r[   r[   x   s    Pr   r[   c                       \ rS rSrSrSrg)ConnectTimeoutError   z@Raised when a socket timeout occurs while connecting to a serverr	   Nr
   r	   r   r   r^   r^      s    Jr   r^   c                       \ rS rSrSrSrg)NewConnectionError   zHRaised when we fail to establish a new connection. Usually ECONNREFUSED.r	   Nr
   r	   r   r   ra   ra      s    Rr   ra   c                       \ rS rSrSrSrg)EmptyPoolError   zCRaised when a pool runs out of connections and no more are allowed.r	   Nr
   r	   r   r   rd   rd          Mr   rd   c                       \ rS rSrSrSrg)ClosedPoolError   zCRaised when a request enters a pool after the pool has been closed.r	   Nr
   r	   r   r   rh   rh      rf   r   rh   c                       \ rS rSrSrSrg)LocationValueError   z<Raised when there is something wrong with a given URL input.r	   Nr
   r	   r   r   rk   rk      s    Fr   rk   c                       \ rS rSrSrS rSrg)LocationParseError   z=Raised when get_host or similar fails to parse the URL input.c                 D    SU-  n[         R                  X5        Xl        g )NzFailed to parse: %s)r   r   location)r   rq   r   s      r   r   LocationParseError.__init__   s    '(24) r   )rq   NrL   r	   r   r   rn   rn      s
    G!r   rn   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )URLSchemeUnknown   z2Raised when a URL input has an unsupported scheme.c                 B   > SU-  n[         [        U ]  U5        Xl        g )NzNot supported URL scheme %s)r7   rt   r   schemer   rw   r   r!   s      r   r   URLSchemeUnknown.__init__   s"    /&8.w7r   )rw   r<   r    s   @r   rt   rt      s    < r   rt   c                        \ rS rSrSrSrSrSrg)ResponseError   zDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesr	   N)r   r   r   r   r   GENERIC_ERRORSPECIFIC_ERRORr   r	   r   r   r{   r{      s    N.M=Nr   r{   c                       \ rS rSrSrSrg)SecurityWarning   z0Warned when performing security reducing actionsr	   Nr
   r	   r   r   r   r          :r   r   c                       \ rS rSrSrSrg)SubjectAltNameWarning   zBWarned when connecting to a host with a certificate missing a SAN.r	   Nr
   r	   r   r   r   r      s    Lr   r   c                       \ rS rSrSrSrg)InsecureRequestWarning   z/Warned when making an unverified HTTPS request.r	   Nr
   r	   r   r   r   r      s    9r   r   c                       \ rS rSrSrSrg)SystemTimeWarning   z0Warned when system time is suspected to be wrongr	   Nr
   r	   r   r   r   r      r   r   r   c                       \ rS rSrSrSrg)InsecurePlatformWarning   zIWarned when certain TLS/SSL configuration is not available on a platform.r	   Nr
   r	   r   r   r   r      s    Sr   r   c                       \ rS rSrSrSrg)SNIMissingWarning   z9Warned when making a HTTPS request without SNI available.r	   Nr
   r	   r   r   r   r      r2   r   r   c                       \ rS rSrSrSrg)DependencyWarning   zW
Warned when an attempt is made to import a module with missing optional
dependencies.
r	   Nr
   r	   r   r   r   r          
 	r   r   c                       \ rS rSrSrSrg)ResponseNotChunked   z;Response needs to be chunked in order to read it as chunks.r	   Nr
   r	   r   r   r   r      rA   r   r   c                       \ rS rSrSrSrg)BodyNotHttplibCompatible   z{
Body should be :class:`http.client.HTTPResponse` like
(have an fp attribute which returns raw chunks) for read_chunked().
r	   Nr
   r	   r   r   r   r      r   r   r   c                   2   ^  \ rS rSrSrU 4S jrS rSrU =r$ )r      z
Response length doesn't match expected Content-Length

Subclass of :class:`http.client.IncompleteRead` to allow int value
for ``partial`` to avoid creating large objects on streamed reads.
c                 ,   > [         [        U ]  X5        g r*   )r7   r   r   )r   partialexpectedr!   s      r   r   IncompleteRead.__init__   s    nd,W?r   c                 8    SU R                   U R                  4-  $ )Nz/IncompleteRead(%i bytes read, %i more expected))r   r   r"   s    r   __repr__IncompleteRead.__repr__   s#    @LLMMD
 
 	
r   r	   	r   r   r   r   r   r   r   r   r=   r    s   @r   r   r      s    @
 
r   r   c                   2   ^  \ rS rSrSrU 4S jrS rSrU =r$ )InvalidChunkLengthi  z+Invalid chunk length in a chunked response.c                 v   > [         [        U ]  UR                  5       UR                  5        Xl        X l        g r*   )r7   r   r   telllength_remainingresponselength)r   r   r   r!   s      r   r   InvalidChunkLength.__init__
  s0     $0MMOX66	
 !r   c                 8    SU R                   U R                  4-  $ )Nz0InvalidChunkLength(got length %r, %i bytes read))r   r   r"   s    r   r   InvalidChunkLength.__repr__  s#    AKKLLE
 
 	
r   )r   r   r   r    s   @r   r   r     s    5
 
r   r   c                       \ rS rSrSrSrg)InvalidHeaderi  z(The header provided was somehow invalid.r	   Nr
   r	   r   r   r   r     s    2r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )ProxySchemeUnknowni  z1ProxyManager does not support the supplied schemec                 R   > US:X  a  S nUc  SnOSU-  n[         [        U ]  U5        g )N	localhostz>Proxy URL had no scheme, should start with http:// or https://zCProxy URL had unsupported scheme %s, should use http:// or https://)r7   r   r   rx   s      r   r   ProxySchemeUnknown.__init__#  sA     [ F>VG V  	 $09r   r	   r<   r    s   @r   r   r     s    ;: :r   r   c                       \ rS rSrSrSrg)ProxySchemeUnsupportedi2  z=Fetching HTTPS resources through HTTPS proxies is unsupportedr	   Nr
   r	   r   r   r   r   2  s    Gr   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )HeaderParsingErrori8  zNRaised by assert_header_parsing, but we convert it to a log.warning statement.c                 P   > U=(       d    S< SU< 3n[         [        U ]  U5        g )NUnknownz, unparsed data: )r7   r   r   )r   defectsunparsed_datar   r!   s       r   r   HeaderParsingError.__init__;  s%    -4-A	-A=Q $09r   r	   r<   r    s   @r   r   r   8  s    X: :r   r   c                       \ rS rSrSrSrg)UnrewindableBodyErrori@  z9urllib3 encountered an error when trying to rewind a bodyr	   Nr
   r	   r   r   r   r   @  r2   r   r   N).
__future__r   packages.six.moves.http_clientr   httplib_IncompleteRead	Exceptionr   Warningr   r   r'   r0   r4   r?   rC   ConnectionErrorrF   rN   rU   rX   r[   r^   ra   rd   rh   
ValueErrorrk   rn   rt   r{   r   r   r   r   r   r   r   r   r   r   r   AssertionErrorr   r   r   r   r	   r   r   <module>r      s   & T
		 		' 		,	 	,	69 	6	y 	$ $	) 		I 	  8L 8$| 		 		9 		|\ 		, 		,i 		Y 		i 		Y 	!+ !) >I >	k 		O 		_ 		 		o 		 		 		
 		y 	
Y 6 
$
$: 
"	I 	:)9 :(	Z 	: :	I 	r   