%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core20/2379/lib/python3/dist-packages/urllib3/__pycache__/
Upload File :
Create Path :
Current File : //snap/core20/2379/lib/python3/dist-packages/urllib3/__pycache__/exceptions.cpython-38.pyc

U

�!8e��@sLddlmZddlmZGdd�de�ZGdd�de�ZGdd�de�Z	Gd	d
�d
e	�Z
Gdd�de�ZGd
d�de�ZGdd�de�Z
Gdd�de�ZeZGdd�de
�ZGdd�de
�ZGdd�de�ZGdd�de�ZGdd�dee
�ZGdd�de�ZGdd �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�ZGd/d0�d0e�ZGd1d2�d2e�Z Gd3d4�d4e�Z!Gd5d6�d6e�Z"Gd7d8�d8e�Z#Gd9d:�d:ee�Z$Gd;d<�d<e�Z%Gd=d>�d>ee�ZGd?d@�d@e�Z&GdAdB�dBe'e�Z(GdCdD�dDe�Z)GdEdF�dFe�Z*dGS)H�)�absolute_import)�IncompleteReadc@seZdZdZdS)�	HTTPErrorz#Base exception used by this module.N��__name__�
__module__�__qualname__�__doc__�r
r
�4/usr/lib/python3/dist-packages/urllib3/exceptions.pyrsrc@seZdZdZdS)�HTTPWarningz!Base warning used by this module.Nrr
r
r
rr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
rrszPoolError.__init__cCs
|jdfS)N)NN��	__class__�rr
r
r�
__reduce__szPoolError.__reduce__N�rrrr	rrr
r
r
rr
sr
c@s eZdZdZdd�Zdd�ZdS)�RequestErrorz8Base exception for PoolErrors that have associated URLs.cCs||_t�|||�dS�N)�urlr
r)rrrrr
r
rr szRequestError.__init__cCs|jd|jdffSr)rrrr
r
rr$szRequestError.__reduce__Nrr
r
r
rrsrc@seZdZdZdS)�SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nrr
r
r
rr)src@seZdZdZdS)�
ProxyErrorz,Raised when the connection to a proxy fails.Nrr
r
r
rr.src@seZdZdZdS)�DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nrr
r
r
rr3src@seZdZdZdS)�
ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nrr
r
r
rr8src@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)rrrrrr
r
rrNszMaxRetryError.__init__)N�rrrr	rr
r
r
rrDs	rc@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
rrYszHostChangedError.__init__N)r"r r
r
r
rr!Vsr!c@seZdZdZdS)�TimeoutStateErrorz3 Raised when passing an invalid state to a timeout Nrr
r
r
rr$_sr$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
rr%esr%c@seZdZdZdS)�ReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNrr
r
r
rr&osr&c@seZdZdZdS)�ConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNrr
r
r
rr'vsr'c@seZdZdZdS)�NewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.Nrr
r
r
rr({sr(c@seZdZdZdS)�EmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nrr
r
r
rr)�sr)c@seZdZdZdS)�ClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nrr
r
r
rr*�sr*c@seZdZdZdS)�LocationValueErrorz<Raised when there is something wrong with a given URL input.Nrr
r
r
rr+�sr+c@seZdZdZdd�ZdS)�LocationParseErrorz=Raised when get_host or similar fails to parse the URL input.cCsd|}t�||�||_dS)NzFailed to parse: %s)rr�location)rr-rr
r
rr�szLocationParseError.__init__Nr r
r
r
rr,�sr,c@seZdZdZdZdZdS)�
ResponseErrorzDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesN)rrrr	Z
GENERIC_ERRORZSPECIFIC_ERRORr
r
r
rr.�sr.c@seZdZdZdS)�SecurityWarningz0Warned when performing security reducing actionsNrr
r
r
rr/�sr/c@seZdZdZdS)�SubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.Nrr
r
r
rr0�sr0c@seZdZdZdS)�InsecureRequestWarningz/Warned when making an unverified HTTPS request.Nrr
r
r
rr1�sr1c@seZdZdZdS)�SystemTimeWarningz0Warned when system time is suspected to be wrongNrr
r
r
rr2�sr2c@seZdZdZdS)�InsecurePlatformWarningzEWarned when certain SSL configuration is not available on a platform.Nrr
r
r
rr3�sr3c@seZdZdZdS)�SNIMissingWarningz9Warned when making a HTTPS request without SNI available.Nrr
r
r
rr4�sr4c@seZdZdZdS)�DependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    Nrr
r
r
rr5�sr5c@seZdZdZdS)�ResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.Nrr
r
r
rr6�sr6c@seZdZdZdS)�BodyNotHttplibCompatiblezz
    Body should be httplib.HTTPResponse like (have an fp attribute which
    returns raw chunks) for read_chunked().
    Nrr
r
r
rr7�sr7cs(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)�superrr)r�partial�expectedrr
rr�szIncompleteRead.__init__cCsd|j|jfS)Nz/IncompleteRead(%i bytes read, %i more expected))r9r:rr
r
r�__repr__�s�zIncompleteRead.__repr__)rrrr	rr;�
__classcell__r
r
rrr�src@seZdZdZdS)�
InvalidHeaderz(The header provided was somehow invalid.Nrr
r
r
rr=�sr=cs eZdZdZ�fdd�Z�ZS)�ProxySchemeUnknownz1ProxyManager does not support the supplied schemecsd|}tt|��|�dS)NzNot supported proxy scheme %s)r8r>r)rZschemerrr
rr�szProxySchemeUnknown.__init__�rrrr	rr<r
r
rrr>�sr>cs 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: %rZUnknown)r8r@r)rZdefectsZ
unparsed_datarrr
rr�szHeaderParsingError.__init__r?r
r
rrr@�sr@c@seZdZdZdS)�UnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNrr
r
r
rrA�srAN)+Z
__future__rZsix.moves.http_clientrZhttplib_IncompleteRead�	Exceptionr�Warningrr
rrrrr�ConnectionErrorrr!r$r%r&r'r(r)r*�
ValueErrorr+r,r.r/r0r1r2r3r4r5r6r7r=�AssertionErrorr>r@rAr
r
r
r�<module>sH	

			

Zerion Mini Shell 1.0