
    h&                       S SK Jr  S SKrS SKrS SKrS SKJr  S SKJr	  \R                  (       a  SSKJr  SSKJr  SSKJr  SS	KJr   " S
 S\5      r " S S\5      r\\R0                  S\4   \\S4   4   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/ S0\5      r, " S1 S2\-\5      r. " S3 S4\.5      r/ " S5 S6\.5      r0 " S7 S8\5      r1 " S9 S:\5      r2 " S; S<\25      r3 " S= S>\25      r4 " S? S@\25      r5 " SA SB\25      r6 " SC SD\5      r7 " SE SF\ \-5      r8 " SG SH\5      r9 " SI SJ\\	5      r " SK SL\\	5      r: " SM SN\5      r; " SO SP\<\05      r= " SQ SR\-5      r> " SS ST\5      r? " SU SV\5      r@g)W    )annotationsN)MessageDefect)IncompleteRead   )HTTPConnection)ConnectionPool)HTTPResponse)Retryc                      \ 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       D/var/www/html/env/lib/python3.13/site-packages/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U 4S jjrSS jrSrU =r$ )	PoolError   z/Base exception for errors caused within a pool.c                F   > Xl         X l        [        TU ]  U SU 35        g Nz: )pool_messagesuper__init__)selfr    message	__class__s      r   r#   PoolError.__init__    %    	D6G9-.r   c                6    U R                   S U R                  44$ Nr&   r!   r$   s    r   
__reduce__PoolError.__reduce__%       ~~dmm444r   )r!   r    )r    r   r%   strreturnNoner1   _TYPE_REDUCE_RESULT	r   r   r   r   r   r#   r-   r   __classcell__r&   s   @r   r   r      s    9/
5 5r   r   c                  :   ^  \ rS rSrSrSU 4S jjrSS jrSrU =r$ )RequestError*   z8Base exception for PoolErrors that have associated URLs.c                0   > X l         [        TU ]	  X5        g r*   )urlr"   r#   )r$   r    r<   r%   r&   s       r   r#   RequestError.__init__-   s    'r   c                L    U R                   S U R                  U R                  44$ r*   )r&   r<   r!   r,   s    r   r-   RequestError.__reduce__1   s     ~~dhh>>>r   )r<   )r    r   r<   r0   r%   r0   r1   r2   r3   r5   r7   s   @r   r9   r9   *   s    B(? ?r   r9   c                      \ rS rSrSrSrg)SSLError6   z9Raised when SSL certificate fails in an HTTPS connection.r   Nr   r   r   r   rA   rA   6       Cr   rA   c                  <   ^  \ rS rSr% SrS\S'   SU 4S jjrSrU =r$ )
ProxyError:   z,Raised when the connection to a proxy fails.	Exceptionoriginal_errorc                0   > [         TU ]  X5        X l        g r*   )r"   r#   rH   )r$   r%   errorr&   s      r   r#   ProxyError.__init__@   s    (#r   )rH   )r%   r0   rJ   rG   r1   r2   )	r   r   r   r   r   __annotations__r#   r   r6   r7   s   @r   rE   rE   :   s    6 $ $r   rE   c                      \ rS rSrSrSrg)DecodeErrorE   z;Raised when automatic decoding based on Content-Type fails.r   Nr   r   r   r   rN   rN   E       Er   rN   c                      \ rS rSrSrSrg)ProtocolErrorI   z>Raised when something unexpected happens mid-request/response.r   Nr   r   r   r   rR   rR   I   s    Hr   rR   c                  N   ^  \ rS rSrSr S       SU 4S jjjrSS jrSrU =r$ )	MaxRetryErrorT   a  Raised when the maximum number of retries is exceeded.

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

c                F   > X0l         SU SU< S3n[        TU ]	  XU5        g )NzMax retries exceeded with url: z (Caused by ))reasonr"   r#   )r$   r    r<   rY   r%   r&   s        r   r#   MaxRetryError.__init___   s-     3C5VJaPG,r   c                L    U R                   S U R                  U R                  44$ r*   )r&   r<   rY   r,   s    r   r-   MaxRetryError.__reduce__h   s     ~~dhh<<<r   )rY   r*   )r    r   r<   r0   rY   zException | Noner1   r2   r3   r5   r7   s   @r   rU   rU   T   sC     JN-"-),-6F-	- -= =r   rU   c                  D   ^  \ rS rSrSr S       SU 4S jjjrSrU =r$ )HostChangedErrorm   z?Raised when an existing pool gets a request for a foreign host.c                <   > SU 3n[         TU ]  XU5        X0l        g )Nz'Tried to open a foreign host with url: )r"   r#   retries)r$   r    r<   ra   r%   r&   s        r   r#   HostChangedError.__init__p   s%     <C5AG,r   )ra   )   )r    r   r<   r0   ra   zRetry | intr1   r2   r   r   r   r   r   r#   r   r6   r7   s   @r   r^   r^   m   s7    I FG"),7B	 r   r^   c                      \ rS rSrSrSrg)TimeoutStateErrorx   z1Raised when passing an invalid state to a timeoutr   Nr   r   r   r   rf   rf   x   s    ;r   rf   c                      \ rS rSrSrSrg)TimeoutError|   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   ri   ri   |   s    r   ri   c                      \ rS rSrSrSrg)ReadTimeoutError   zFRaised when a socket timeout occurs while receiving data from a serverr   Nr   r   r   r   rl   rl      s    Pr   rl   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   ro   ro      s    Jr   ro   c                  N   ^  \ rS rSrSrSU 4S jjrSS jr\S	S j5       rSr	U =r
$ )
NewConnectionError   zHRaised when we fail to establish a new connection. Usually ECONNREFUSED.c                F   > Xl         X l        [        TU ]  U SU 35        g r   )connr!   r"   r#   )r$   ru   r%   r&   s      r   r#   NewConnectionError.__init__   r(   r   c                6    U R                   S U R                  44$ r*   r+   r,   s    r   r-   NewConnectionError.__reduce__   r/   r   c                N    [         R                  " S[        SS9  U R                  $ )Nz\The 'pool' property is deprecated and will be removed in urllib3 v2.1.0. Use 'conn' instead.   )
stacklevel)warningswarnDeprecationWarningru   r,   s    r   r    NewConnectionError.pool   s%    5		
 yyr   )r!   ru   )ru   r   r%   r0   r1   r2   r3   )r1   r   )r   r   r   r   r   r#   r-   propertyr    r   r6   r7   s   @r   rr   rr      s$    R/
5  r   rr   c                  :   ^  \ rS rSrSrSU 4S jjrSS jrSrU =r$ )NameResolutionError   z'Raised when host name resolution fails.c                N   > SU SU S3nXl         X0l        [        TU ]  X$5        g )NzFailed to resolve 'z' (rX   )_host_reasonr"   r#   )r$   hostru   rY   r%   r&   s        r   r#   NameResolutionError.__init__   s.    'vS:
'r   c                L    U R                   U R                  S U R                  44$ r*   )r&   r   r   r,   s    r   r-   NameResolutionError.__reduce__   s     ~~

D$,,???r   )r   r   )r   r0   ru   r   rY   zsocket.gaierrorr3   r5   r7   s   @r   r   r      s    1(@ @r   r   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   r   r          Mr   r   c                      \ rS rSrSrSrg)FullPoolError   zGRaised when we try to add a connection to a full pool in blocking mode.r   Nr   r   r   r   r   r      s    Qr   r   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   r   r      r   r   r   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   r   r      s    Fr   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )LocationParseError   z=Raised when get_host or similar fails to parse the URL input.c                :   > SU 3n[         TU ]  U5        Xl        g )NzFailed to parse: )r"   r#   location)r$   r   r%   r&   s      r   r#   LocationParseError.__init__   s!    %hZ0! r   )r   )r   r0   r1   r2   rd   r7   s   @r   r   r      s    G! !r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )URLSchemeUnknown   z2Raised when a URL input has an unsupported scheme.c                :   > SU 3n[         TU ]  U5        Xl        g )NzNot supported URL scheme )r"   r#   schemer$   r   r%   r&   s      r   r#   URLSchemeUnknown.__init__   s!    -fX6!r   )r   )r   r0   rd   r7   s   @r   r   r      s    < r   r   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)InsecureRequestWarning   z/Warned when making an unverified HTTPS request.r   Nr   r   r   r   r   r      s    9r   r   c                      \ rS rSrSrSrg)NotOpenSSLWarning   z)Warned when using unsupported SSL libraryr   Nr   r   r   r   r   r      s    3r   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    Sr   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      rP   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                  B    \ rS rSr% SrS\S'   S\S'   S
S jrSS jrSrg	)r   i  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.
intpartialexpectedc                    Xl         X l        g r*   r   r   )r$   r   r   s      r   r#   IncompleteRead.__init__  s     r   c                8    SU R                   U R                  4-  $ )Nz/IncompleteRead(%i bytes read, %i more expected)r   r,   s    r   __repr__IncompleteRead.__repr__  s#    @LLMMD
 
 	
r   )r   r   N)r   r   r   r   r1   r2   r1   r0   )	r   r   r   r   r   rL   r#   r   r   r   r   r   r   r     s     LM!
r   r   c                  ,    \ rS rSrSrSS jrSS jrSrg)	InvalidChunkLengthi  z+Invalid chunk length in a chunked response.c                h    UR                  5       U l        UR                  U l        Xl        X l        g r*   )tellr   length_remainingr   responselength)r$   r   r   s      r   r#   InvalidChunkLength.__init__  s&    $MMO$,$=$= 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   N)r   r	   r   bytesr1   r2   r   )r   r   r   r   r   r#   r   r   r   r   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    2r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )ProxySchemeUnknowni/  z1ProxyManager does not support the supplied schemec                L   > US:X  a  S nUc  SnOSU S3n[         TU ]  U5        g )N	localhostz>Proxy URL had no scheme, should start with http:// or https://z!Proxy URL had unsupported scheme z , should use http:// or https://r"   r#   r   s      r   r#   ProxySchemeUnknown.__init__4  s8     [ F>VG9&AabG!r   r   )r   z
str | Noner1   r2   rd   r7   s   @r   r   r   /  s    ;	" 	"r   r   c                      \ rS rSrSrSrg)ProxySchemeUnsupportedi@  z=Fetching HTTPS resources through HTTPS proxies is unsupportedr   Nr   r   r   r   r   r   @  s    Gr   r   c                  <   ^  \ rS rSrSr      SU 4S jjrSrU =r$ )HeaderParsingErroriD  zNRaised by assert_header_parsing, but we convert it to a log.warning statement.c                F   > U=(       d    S SU< 3n[         TU ]  U5        g )NUnknownz, unparsed data: r   )r$   defectsunparsed_datar%   r&   s       r   r#   HeaderParsingError.__init__G  s*     )	**;M;LM!r   r   )r   zlist[MessageDefect]r   zbytes | str | Noner1   r2   rd   r7   s   @r   r   r   D  s(    X"*";M"	" "r   r   c                      \ rS rSrSrSrg)UnrewindableBodyErroriN  z9urllib3 encountered an error when trying to rewind a bodyr   Nr   r   r   r   r   r   N  rC   r   r   )A
__future__r   sockettypingr|   email.errorsr   http.clientr   httplib_IncompleteReadTYPE_CHECKING
connectionr   connectionpoolr   r   r	   
util.retryr
   rG   r   Warningr   tupleCallableobjectr4   r   r9   rA   rE   rN   rR   ConnectionErrorrU   r^   rf   ri   rl   ro   rr   r   r   r   r   
ValueErrorr   r   r   r   r   r   r   r   r   r   r   r   r   r   AssertionErrorr   r   r   r   r   r   r   <module>r      sT   "    & @	*.&!
.	 .,' , FOOCK8%:LLM 
5	 
5	?9 	?Dy D$ $F) FII I
  =L =2| <	 <9 Q|\ QK, K,i 0@, @NY NRI RNi NGY G!+ !) >I >;k ;:_ :4 4; ;To T F
 Fy 
Y 6 
,
$: 
 3I 3")9 ""HZ H" "DI Dr   