
    vKg$                    F   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\R.                  \R0                  S\4   \R.                  \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       R/var/www/highfloat_scraper/venv/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                :   > Xl         [        TU ]	  U SU 35        g Nz: )poolsuper__init__)selfr    message	__class__s      r   r"   PoolError.__init__"        	D6G9-.r   c                    U R                   S4$ )N)NNr%   r#   s    r   
__reduce__PoolError.__reduce__&   s    ~~|++r   )r    )r    r   r$   strreturnNoner.   _TYPE_REDUCE_RESULT	r   r   r   r   r   r"   r+   r   __classcell__r)   s   @r   r   r      s    9/, ,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$ )RequestError+   z8Base exception for PoolErrors that have associated URLs.c                0   > X l         [        TU ]	  X5        g N)urlr!   r"   )r#   r    r9   r$   r%   s       r   r"   RequestError.__init__.   s    'r   c                8    U R                   S U R                  S 44$ r8   )r%   r9   r*   s    r   r+   RequestError.__reduce__2   s    ~~dhh555r   )r9   )r    r   r9   r-   r$   r-   r.   r/   r0   r2   r)   s   @r   r5   r5   +   s    B(6 6r   r5   c                      \ rS rSrSrSrg)SSLError7   z9Raised when SSL certificate fails in an HTTPS connection.r   Nr   r   r   r   r>   r>   7       Cr   r>   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 r8   )r!   r"   rE   )r#   r$   errorr%   s      r   r"   ProxyError.__init__A   s    (#r   )rE   )r$   r-   rG   rD   r.   r/   )	r   r   r   r   r   __annotations__r"   r   r3   r)   s   @r   rB   rB   ;   s    6 $ $r   rB   c                      \ rS rSrSrSrg)DecodeErrorF   z;Raised when automatic decoding based on Content-Type fails.r   Nr   r   r   r   rK   rK   F       Er   rK   c                      \ rS rSrSrSrg)ProtocolErrorJ   z>Raised when something unexpected happens mid-request/response.r   Nr   r   r   r   rO   rO   J   s    Hr   rO   c                  D   ^  \ rS rSrSr S       SU 4S jjjrSrU =r$ )MaxRetryErrorU   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    r9   rV   r$   r%   s        r   r"   MaxRetryError.__init__`   s-     3C5VJaPG,r   )rV   r8   )r    r   r9   r-   rV   zException | Noner.   r/   r   r   r   r   r   r"   r   r3   r)   s   @r   rR   rR   U   s9     JN-"-),-6F-	- -r   rR   c                  D   ^  \ rS rSrSr S       SU 4S jjjrSrU =r$ )HostChangedErrorj   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    r9   r]   r$   r%   s        r   r"   HostChangedError.__init__m   s%     <C5AG,r   )r]   )   )r    r   r9   r-   r]   zRetry | intr.   r/   rX   r)   s   @r   rZ   rZ   j   s7    I FG"),7B	 r   rZ   c                      \ rS rSrSrSrg)TimeoutStateErroru   z1Raised when passing an invalid state to a timeoutr   Nr   r   r   r   ra   ra   u   s    ;r   ra   c                      \ rS rSrSrSrg)TimeoutErrory   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   rd   rd   y   s    r   rd   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   rg   rg      s    Pr   rg   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   rj   rj      s    Jr   rj   c                  D   ^  \ rS rSrSrSU 4S jjr\SS j5       rSrU =r	$ )NewConnectionError   zHRaised when we fail to establish a new connection. Usually ECONNREFUSED.c                :   > Xl         [        TU ]	  U SU 35        g r   )connr!   r"   )r#   rp   r$   r%   s      r   r"   NewConnectionError.__init__   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DeprecationWarningrp   r*   s    r   r    NewConnectionError.pool   s%    5		
 yyr   )rp   )rp   r   r$   r-   r.   r/   )r.   r   )
r   r   r   r   r   r"   propertyr    r   r3   r)   s   @r   rm   rm      s    R/  r   rm   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )NameResolutionError   z'Raised when host name resolution fails.c                6   > SU SU S3n[         TU ]  X$5        g )NzFailed to resolve 'z' (rU   r!   r"   )r#   hostrp   rV   r$   r%   s        r   r"   NameResolutionError.__init__   s$    'vS:'r   r   )r   r-   rp   r   rV   zsocket.gaierrorrX   r)   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   r-   r.   r/   rX   r)   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   r-   rX   r)   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      rM   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      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 r8   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   r.   r/   r.   r-   )	r   r   r   r   r   rI   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 r8   )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   bytesr.   r/   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   s      r   r"   ProxySchemeUnknown.__init__&  s8     [ F>VG9&AabG!r   r   )r   z
str | Noner.   r/   rX   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    Gr   r   c                  <   ^  \ rS rSrSr      SU 4S jjrSrU =r$ )HeaderParsingErrori6  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__9  s*     )	**;M;LM!r   r   )r   zlist[MessageDefect]r   zbytes | str | Noner.   r/   rX   r)   s   @r   r   r   6  s(    X"*";M"	" "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   @  r@   r   r   )A
__future__r   sockettypingru   email.errorsr   http.clientr   httplib_IncompleteReadTYPE_CHECKING
connectionr   connectionpoolr   r   r	   
util.retryr
   rD   r   Warningr   TupleCallableobjectr1   r   r5   r>   rB   rK   rO   ConnectionErrorrR   rZ   ra   rd   rg   rj   rm   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      s]   "    & @	*.&!
.	 .,' , ll
OOCK &,,vs{";; 
	,	 	,	69 	6Dy D$ $F) FII I
  -L -*| <	 <9 Q|\ QK, K,i &(, (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   