
    g%                       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       Z/Users/Alptekin/Desktop/izin_takip/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__$       ~~|++r   )r    )r    r   r$   strreturnNoner0   _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    r;   r$   r%   s       r   r"   RequestError.__init__,   s    'r   c                8    U R                   S U R                  S 44$ r:   )r%   r;   r+   s    r   r,   RequestError.__reduce__0   s    ~~dhh555r   )r;   )r    r   r;   r/   r$   r/   r0   r1   r2   r4   r*   s   @r   r7   r7   )   s    B(6 6r   r7   c                      \ rS rSrSrSrg)SSLError5   z9Raised when SSL certificate fails in an HTTPS connection.r   Nr   r   r   r   r@   r@   5       Cr   r@   c                  <   ^  \ rS rSr% SrS\S'   SU 4S jjrSrU =r$ )
ProxyError9   z,Raised when the connection to a proxy fails.	Exceptionoriginal_errorc                0   > [         TU ]  X5        X l        g r:   )r!   r"   rG   )r#   r$   errorr%   s      r   r"   ProxyError.__init__?   s    (#r   )rG   )r$   r/   rI   rF   r0   r1   )	r   r   r   r   r   __annotations__r"   r   r5   r*   s   @r   rD   rD   9   s    6 $ $r   rD   c                      \ rS rSrSrSrg)DecodeErrorD   z;Raised when automatic decoding based on Content-Type fails.r   Nr   r   r   r   rM   rM   D       Er   rM   c                      \ rS rSrSrSrg)ProtocolErrorH   z>Raised when something unexpected happens mid-request/response.r   Nr   r   r   r   rQ   rQ   H   s    Hr   rQ   c                  D   ^  \ rS rSrSr S       SU 4S jjjrSrU =r$ )MaxRetryErrorS   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;   rX   r$   r%   s        r   r"   MaxRetryError.__init__^   s-     3C5VJaPG,r   )rX   r:   )r    r   r;   r/   rX   zException | Noner0   r1   r   r   r   r   r   r"   r   r5   r*   s   @r   rT   rT   S   s9     JN-"-),-6F-	- -r   rT   c                  D   ^  \ rS rSrSr S       SU 4S jjjrSrU =r$ )HostChangedErrorh   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;   r_   r$   r%   s        r   r"   HostChangedError.__init__k   s%     <C5AG,r   )r_   )   )r    r   r;   r/   r_   zRetry | intr0   r1   rZ   r*   s   @r   r\   r\   h   s7    I FG"),7B	 r   r\   c                      \ rS rSrSrSrg)TimeoutStateErrors   z1Raised when passing an invalid state to a timeoutr   Nr   r   r   r   rc   rc   s   s    ;r   rc   c                      \ rS rSrSrSrg)TimeoutErrorw   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   rf   rf   w   s    r   rf   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   ri   ri      s    Pr   ri   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   rl   rl      s    Jr   rl   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                :   > Xl         [        TU ]	  U SU 35        g r   )connr!   r"   )r#   rr   r$   r%   s      r   r"   NewConnectionError.__init__   r'   r   c                    U R                   S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DeprecationWarningrr   r+   s    r   r    NewConnectionError.pool   s%    5		
 yyr   )rr   )rr   r   r$   r/   r0   r1   r2   )r0   r   )r   r   r   r   r   r"   r,   propertyr    r   r5   r*   s   @r   ro   ro      s$    R/,  r   ro   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                6   > SU SU S3n[         TU ]  X$5        g )NzFailed to resolve 'z' (rW   r!   r"   )r#   hostrr   rX   r$   r%   s        r   r"   NameResolutionError.__init__   s$    'vS:'r   c                    U R                   S4$ )N)NNNr*   r+   s    r   r,   NameResolutionError.__reduce__   s    ~~111r   r   )r   r/   rr   r   rX   zsocket.gaierrorr2   r4   r*   s   @r   r   r      s    1(2 2r   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/   r0   r1   rZ   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/   rZ   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      rO   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 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   r0   r1   r0   r/   )	r   r   r   r   r   rK   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   bytesr0   r1   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 | Noner0   r1   rZ   r*   s   @r   r   r   '  s    ;	" 	"r   r   c                      \ rS rSrSrSrg)ProxySchemeUnsupportedi8  z=Fetching HTTPS resources through HTTPS proxies is unsupportedr   Nr   r   r   r   r   r   8  s    Gr   r   c                  <   ^  \ rS rSrSr      SU 4S jjrSrU =r$ )HeaderParsingErrori<  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__?  s*     )	**;M;LM!r   r   )r   zlist[MessageDefect]r   zbytes | str | Noner0   r1   rZ   r*   s   @r   r   r   <  s(    X"*";M"	" "r   r   c                      \ rS rSrSrSrg)UnrewindableBodyErroriF  z9urllib3 encountered an error when trying to rewind a bodyr   Nr   r   r   r   r   r   F  rB   r   r   )A
__future__r   sockettypingry   email.errorsr   http.clientr   httplib_IncompleteReadTYPE_CHECKING
connectionr   connectionpoolr   r   r	   
util.retryr
   rF   r   Warningr   tupleCallableobjectr3   r   r7   r@   rD   rM   rQ   ConnectionErrorrT   r\   rc   rf   ri   rl   ro   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      sR   "    & @	*.&!
.	 .,' , FOOCK8%:LLM 	,	 	,	69 	6Dy D$ $F) FII I
  -L -*| <	 <9 Q|\ QK, K,i .	2, 	2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   