JFIF$        dd7 

Viewing File: /usr/lib/python3.9/site-packages/urllib3/__pycache__/exceptions.cpython-39.opt-1.pyc

a

t~�` �@s~ddlmZddlmZGdd�de�ZGdd�de�ZGdd	�d	e�Z	Gd
d�de	�Z
Gdd
�d
e�ZGdd�de�ZGdd�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�dCee�Z'GdDdE�dEe�Z(GdFdG�dGe)e�Z*GdHdI�dIe�Z+GdJdK�dKe�Z,GdLdM�dMe�Z-dNS)O�)�absolute_import�)�IncompleteReadc@seZdZdZdS)�	HTTPErrorz#Base exception used by this module.N��__name__�
__module__�__qualname__�__doc__�rr�6/usr/lib/python3.9/site-packages/urllib3/exceptions.pyrsrc@seZdZdZdS)�HTTPWarningz!Base warning used by this module.Nrrrrrr
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�messagerrrrszPoolError.__init__cCs
|jdfS)N)NN��	__class__�rrrr�
__reduce__szPoolError.__reduce__N�rrr	r
rrrrrrrsrc@s eZdZdZdd�Zdd�ZdS)�RequestErrorz8Base exception for PoolErrors that have associated URLs.cCs||_t�|||�dS�N)�urlrr)rrrrrrrr#szRequestError.__init__cCs|jd|jdffSr)rrrrrrr'szRequestError.__reduce__Nrrrrrr src@seZdZdZdS)�SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nrrrrrr,srcs eZdZdZ�fdd�Z�ZS)�
ProxyErrorz,Raised when the connection to a proxy fails.cs$tt|�j||g|�R�||_dSr)�superrrZoriginal_error)rr�error�argsrrrr5szProxyError.__init__�rrr	r
r�
__classcell__rrrrr2src@seZdZdZdS)�DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nrrrrrr":sr"c@seZdZdZdS)�
ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nrrrrrr#@sr#c@seZdZdZddd�ZdS)�
MaxRetryErroraRaised 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%rrrrrWszMaxRetryError.__init__)N�rrr	r
rrrrrr$Ms	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)rrrrrbszHostChangedError.__init__N)r(r&rrrrr'_sr'c@seZdZdZdS)�TimeoutStateErrorz1Raised when passing an invalid state to a timeoutNrrrrrr*hsr*c@seZdZdZdS)�TimeoutErrorz�Raised when a socket timeout error occurs.

    Catching this error will catch both :exc:`ReadTimeoutErrors
    <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
    Nrrrrrr+nsr+c@seZdZdZdS)�ReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNrrrrrr,xsr,c@seZdZdZdS)�ConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNrrrrrr-�sr-c@seZdZdZdS)�NewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.Nrrrrrr.�sr.c@seZdZdZdS)�EmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nrrrrrr/�sr/c@seZdZdZdS)�ClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nrrrrrr0�sr0c@seZdZdZdS)�LocationValueErrorz<Raised when there is something wrong with a given URL input.Nrrrrrr1�sr1c@seZdZdZdd�ZdS)�LocationParseErrorz=Raised when get_host or similar fails to parse the URL input.cCsd|}t�||�||_dS)NzFailed to parse: %s)rr�location)rr3rrrrr�szLocationParseError.__init__Nr&rrrrr2�sr2cs eZdZdZ�fdd�Z�ZS)�URLSchemeUnknownz2Raised when a URL input has an unsupported scheme.cs"d|}tt|��|�||_dS)NzNot supported URL scheme %s)rr4r�scheme�rr5rrrrr�szURLSchemeUnknown.__init__r rrrrr4�sr4c@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
Z
GENERIC_ERRORZSPECIFIC_ERRORrrrrr7�sr7c@seZdZdZdS)�SecurityWarningz0Warned when performing security reducing actionsNrrrrrr8�sr8c@seZdZdZdS)�SubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.Nrrrrrr9�sr9c@seZdZdZdS)�InsecureRequestWarningz/Warned when making an unverified HTTPS request.Nrrrrrr:�sr:c@seZdZdZdS)�SystemTimeWarningz0Warned when system time is suspected to be wrongNrrrrrr;�sr;c@seZdZdZdS)�InsecurePlatformWarningzIWarned when certain TLS/SSL configuration is not available on a platform.Nrrrrrr<�sr<c@seZdZdZdS)�SNIMissingWarningz9Warned when making a HTTPS request without SNI available.Nrrrrrr=�sr=c@seZdZdZdS)�DependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    Nrrrrrr>�sr>c@seZdZdZdS)�ResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.Nrrrrrr?�sr?c@seZdZdZdS)�BodyNotHttplibCompatiblez�
    Body should be :class:`http.client.HTTPResponse` like
    (have an fp attribute which returns raw chunks) for read_chunked().
    Nrrrrrr@�sr@cs(eZdZdZ�fdd�Zdd�Z�ZS)rz�
    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.
    cstt|��||�dSr)rrr)r�partial�expectedrrrr�szIncompleteRead.__init__cCsd|j|jfS)Nz/IncompleteRead(%i bytes read, %i more expected))rArBrrrr�__repr__s�zIncompleteRead.__repr__�rrr	r
rrCr!rrrrr�srcs(eZdZdZ�fdd�Zdd�Z�ZS)�InvalidChunkLengthz+Invalid chunk length in a chunked response.cs(tt|��|��|j�||_||_dSr)rrEr�tellZlength_remaining�response�length)rrGrHrrrr
s


�zInvalidChunkLength.__init__cCsd|j|jfS)Nz0InvalidChunkLength(got length %r, %i bytes read))rHrArrrrrCs�zInvalidChunkLength.__repr__rDrrrrrEsrEc@seZdZdZdS)�
InvalidHeaderz(The header provided was somehow invalid.NrrrrrrIsrIcs eZdZdZ�fdd�Z�ZS)�ProxySchemeUnknownz1ProxyManager does not support the supplied schemecs6|dkrd}|durd}nd|}tt|��|�dS)NZ	localhostz>Proxy URL had no scheme, should start with http:// or https://zCProxy URL had unsupported scheme %s, should use http:// or https://)rrJrr6rrrr#s��zProxySchemeUnknown.__init__r rrrrrJsrJc@seZdZdZdS)�ProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedNrrrrrrK2srKcs 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)rrLr)rZdefectsZ
unparsed_datarrrrr;szHeaderParsingError.__init__r rrrrrL8srLc@seZdZdZdS)�UnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNrrrrrrM@srMN).Z
__future__rZpackages.six.moves.http_clientrZhttplib_IncompleteRead�	Exceptionr�Warningr
rrrrr"r#�ConnectionErrorr$r'r*r+r,r-r.r/r0�
ValueErrorr1r2r4r7r8r9r:r;r<r=r>r?r@rErI�AssertionErrorrJrKrLrMrrrr�<module>sN	


		
Back to Directory  nL+D550H?Mx ,D"v]qv;6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