zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
U
I=®dã@s\ddlmZddlmZGdd„deƒZGdd„deƒZGdd    „d    eƒZ    Gd
d „d e    ƒZ
Gd d „d eƒZ Gdd„deƒZ Gdd„deƒZ Gdd„deƒZeZGdd„de
ƒZGdd„de
ƒZGdd„deƒZGdd„deƒZGdd„dee
ƒZGdd„deƒZGd d!„d!ee    ƒZGd"d#„d#e    ƒZGd$d%„d%e    ƒZGd&d'„d'eeƒZGd(d)„d)eƒZGd*d+„d+eƒZGd,d-„d-eƒZGd.d/„d/eƒZGd0d1„d1eƒZGd2d3„d3eƒZ Gd4d5„d5eƒZ!Gd6d7„d7eƒZ"Gd8d9„d9eƒZ#Gd:d;„d;eƒZ$Gd<d=„d=eeƒZ%Gd>d?„d?eƒZ&Gd@dA„dAeeƒZGdBdC„dCeƒZ'GdDdE„dEe(eƒZ)GdFdG„dGeƒZ*GdHdI„dIeƒZ+dJS)Ké)Úabsolute_importé)ÚIncompleteReadc@seZdZdZdS)Ú    HTTPErrorz#Base exception used by this module.N©Ú__name__Ú
__module__Ú __qualname__Ú__doc__©r r úUD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_vendor/urllib3/exceptions.pyrsrc@seZdZdZdS)Ú HTTPWarningz!Base warning used by this module.Nrr r r r r sr c@s eZdZdZdd„Zdd„ZdS)Ú    PoolErrorz/Base exception for errors caused within a pool.cCs||_t |d||f¡dS)Nz%s: %s)ÚpoolrÚ__init__)ÚselfrÚmessager r r rszPoolError.__init__cCs
|jdfS)N)NN©Ú    __class__©rr r r Ú
__reduce__szPoolError.__reduce__N©rrr    r
rrr r r r rsrc@s eZdZdZdd„Zdd„ZdS)Ú RequestErrorz8Base exception for PoolErrors that have associated URLs.cCs||_t |||¡dS©N)Úurlrr)rrrrr r r r szRequestError.__init__cCs|jd|jdffSr)rrrr r r r$szRequestError.__reduce__Nrr r r r rsrc@seZdZdZdS)ÚSSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nrr r r r r)srcs eZdZdZ‡fdd„Z‡ZS)Ú
ProxyErrorz,Raised when the connection to a proxy fails.cs"tt|ƒj||f|žŽ||_dSr)ÚsuperrrÚoriginal_error)rrÚerrorÚargsrr r r1szProxyError.__init__©rrr    r
rÚ __classcell__r r rr r.src@seZdZdZdS)Ú DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nrr r r r r#6sr#c@seZdZdZdS)Ú ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nrr r r r r$;sr$c@seZdZdZddd„ZdS)Ú MaxRetryErrora Raised 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
 
    NcCs&||_d||f}t ||||¡dS)Nz0Max retries exceeded with url: %s (Caused by %r))Úreasonrr)rrrr&rr r r rQs zMaxRetryError.__init__)N©rrr    r
rr r r r r%Gs    r%c@seZdZdZddd„ZdS)ÚHostChangedErrorz?Raised when an existing pool gets a request for a foreign host.écCs"d|}t ||||¡||_dS)Nz)Tried to open a foreign host with url: %s)rrÚretries)rrrr*rr r r r\szHostChangedError.__init__N)r)r'r r r r r(Ysr(c@seZdZdZdS)ÚTimeoutStateErrorz3 Raised when passing an invalid state to a timeout Nrr r r r r+bsr+c@seZdZdZdS)Ú TimeoutErrorzÀ Raised when a socket timeout error occurs.
 
    Catching this error will catch both :exc:`ReadTimeoutErrors
    <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
    Nrr r r r r,hsr,c@seZdZdZdS)ÚReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNrr r r r r-rsr-c@seZdZdZdS)ÚConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNrr r r r r.ysr.c@seZdZdZdS)ÚNewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.Nrr r r r r/~sr/c@seZdZdZdS)ÚEmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nrr r r r r0ƒsr0c@seZdZdZdS)ÚClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nrr r r r r1ˆsr1c@seZdZdZdS)ÚLocationValueErrorz<Raised when there is something wrong with a given URL input.Nrr r r r r2sr2c@seZdZdZdd„ZdS)ÚLocationParseErrorz=Raised when get_host or similar fails to parse the URL input.cCsd|}t ||¡||_dS)NzFailed to parse: %s)rrÚlocation)rr4rr r r r•s zLocationParseError.__init__Nr'r r r r r3’sr3c@seZdZdZdZdZdS)Ú ResponseErrorzDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesN)rrr    r
Ú GENERIC_ERRORÚSPECIFIC_ERRORr r r r r5œsr5c@seZdZdZdS)ÚSecurityWarningz0Warned when performing security reducing actionsNrr r r r r8¢sr8c@seZdZdZdS)ÚSubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.Nrr r r r r9§sr9c@seZdZdZdS)ÚInsecureRequestWarningz/Warned when making an unverified HTTPS request.Nrr r r r r:¬sr:c@seZdZdZdS)ÚSystemTimeWarningz0Warned when system time is suspected to be wrongNrr r r r r;±sr;c@seZdZdZdS)ÚInsecurePlatformWarningzEWarned when certain SSL configuration is not available on a platform.Nrr r r r r<¶sr<c@seZdZdZdS)ÚSNIMissingWarningz9Warned when making a HTTPS request without SNI available.Nrr r r r r=»sr=c@seZdZdZdS)ÚDependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    Nrr r r r r>Àsr>c@seZdZdZdS)Ú InvalidProxyConfigurationWarninga^
    Warned when using an HTTPS proxy and an HTTPS URL. Currently
    urllib3 doesn't support HTTPS proxies and the proxy will be
    contacted via HTTP instead. This warning can be fixed by
    changing your HTTPS proxy URL into an HTTP proxy URL.
 
    If you encounter this warning read this:
    https://github.com/urllib3/urllib3/issues/1850
    Nrr r r r r?És
r?c@seZdZdZdS)ÚResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.Nrr r r r r@×sr@c@seZdZdZdS)ÚBodyNotHttplibCompatiblezz
    Body should be httplib.HTTPResponse like (have an fp attribute which
    returns raw chunks) for read_chunked().
    Nrr r r r rAÜsrAcs(eZdZdZ‡fdd„Zdd„Z‡ZS)rzÇ
    Response length doesn't match expected Content-Length
 
    Subclass of http_client.IncompleteRead to allow int value
    for `partial` to avoid creating large objects on streamed
    reads.
    cstt|ƒ ||¡dSr)rrr)rÚpartialÚexpectedrr r rîszIncompleteRead.__init__cCsd|j|jfS)Nz/IncompleteRead(%i bytes read, %i more expected))rBrCrr r r Ú__repr__ñsþzIncompleteRead.__repr__)rrr    r
rrDr"r r rr rås rc@seZdZdZdS)Ú InvalidHeaderz(The header provided was somehow invalid.Nrr r r r rEøsrEcs eZdZdZ‡fdd„Z‡ZS)ÚProxySchemeUnknownz1ProxyManager does not support the supplied schemecsd|}tt|ƒ |¡dS)NzNot supported proxy scheme %s)rrFr)rÚschemerrr r rszProxySchemeUnknown.__init__r!r r rr rFýsrFcs eZdZdZ‡fdd„Z‡ZS)ÚHeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.cs$d|pd|f}tt|ƒ |¡dS)Nz%s, unparsed data: %rÚUnknown)rrHr)rÚdefectsÚ unparsed_datarrr r r    szHeaderParsingError.__init__r!r r rr rHsrHc@seZdZdZdS)ÚUnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNrr r r r rLsrLN),Ú
__future__rZpackages.six.moves.http_clientrÚhttplib_IncompleteReadÚ    ExceptionrÚWarningr rrrrr#r$ÚConnectionErrorr%r(r+r,r-r.r/r0r1Ú
ValueErrorr2r3r5r8r9r:r;r<r=r>r?r@rArEÚAssertionErrorrFrHrLr r r r Ú<module>sJ