Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/urllib3/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/urllib3/__pycache__/exceptions.cpython-310.pyc
o

�g �@s~ddlmZddlmZGdd�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:e�Z$Gd;d<�d<ee�Z%Gd=d>�d>e�Z&Gd?d@�d@ee�ZGdAdB�dBee�Z'GdCdD�dDe�Z(GdEdF�dFe)e�Z*GdGdH�dHe�Z+GdIdJ�dJe�Z,GdKdL�dLe�Z-dMS)N�)�absolute_import)�IncompleteReadc@�eZdZdZdS)�	HTTPErrorz#Base exception used by this module.N��__name__�
__module__�__qualname__�__doc__�rr�4/usr/lib/python3/dist-packages/urllib3/exceptions.pyr�rc@r)�HTTPWarningz!Base warning used by this module.Nrrrrrrr
rc@� eZdZdZdd�Zdd�ZdS)�	PoolErrorz/Base exception for errors caused within a pool.cCs||_t�|d||f�dS)Nz%s: %s)�poolr�__init__)�selfr�messagerrrrszPoolError.__init__cCs
|jdfS)N)NN��	__class__�rrrr�
__reduce__s
zPoolError.__reduce__N�rrr	r
rrrrrrr�rc@r)�RequestErrorz8Base exception for PoolErrors that have associated URLs.cCs||_t�|||�dS�N)�urlrr)rrrrrrrr#szRequestError.__init__cCs|jd|jdffSr)rrrrrrr'szRequestError.__reduce__Nrrrrrr rrc@r)�SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nrrrrrr,r
rc� eZdZdZ�fdd�Z�ZS)�
ProxyErrorz,Raised when the connection to a proxy fails.cs$tt|�j||g|�R�||_dSr)�superr r�original_error)rr�error�argsrrrr5s
zProxyError.__init__�rrr	r
r�
__classcell__rrrrr 2�r c@r)�DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nrrrrrr(:r
r(c@r)�
ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nrrrrrr)@r
r)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+rrrrrWszMaxRetryError.__init__r�rrr	r
rrrrrr*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/rrrrrbs
zHostChangedError.__init__N)r.r,rrrrr-_sr-c@r)�TimeoutStateErrorz1Raised when passing an invalid state to a timeoutNrrrrrr0hr
r0c@r)�TimeoutErrorz�Raised when a socket timeout error occurs.

    Catching this error will catch both :exc:`ReadTimeoutErrors
    <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
    Nrrrrrr1nsr1c@r)�ReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNrrrrrr2xr
r2c@r)�ConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNrrrrrr3�r
r3c@r)�NewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.Nrrrrrr4�r
r4c@r)�EmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nrrrrrr5�r
r5c@r)�ClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nrrrrrr6�r
r6c@r)�LocationValueErrorz<Raised when there is something wrong with a given URL input.Nrrrrrr7�r
r7c@seZdZdZdd�ZdS)�LocationParseErrorz=Raised when get_host or similar fails to parse the URL input.cCsd|}t�||�||_dS)NzFailed to parse: %s)rr�location)rr9rrrrr�s
zLocationParseError.__init__Nr,rrrrr8�sr8cr)�URLSchemeUnknownz2Raised when a URL input has an unsupported scheme.cs"d|}tt|��|�||_dS)NzNot supported URL scheme %s)r!r:r�scheme�rr;rrrrr�s
zURLSchemeUnknown.__init__r%rrrrr:�r'r:c@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_ERRORrrrrr=�sr=c@r)�SecurityWarningz0Warned when performing security reducing actionsNrrrrrr@�r
r@c@r)�SubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.NrrrrrrA�r
rAc@r)�InsecureRequestWarningz/Warned when making an unverified HTTPS request.NrrrrrrB�r
rBc@r)�SystemTimeWarningz0Warned when system time is suspected to be wrongNrrrrrrC�r
rCc@r)�InsecurePlatformWarningzIWarned when certain TLS/SSL configuration is not available on a platform.NrrrrrrD�r
rDc@r)�SNIMissingWarningz9Warned when making a HTTPS request without SNI available.NrrrrrrE�r
rEc@r)�DependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    NrrrrrrF��rFc@r)�ResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.NrrrrrrH�r
rHc@r)�BodyNotHttplibCompatiblez�
    Body should be :class:`http.client.HTTPResponse` like
    (have an fp attribute which returns raw chunks) for read_chunked().
    NrrrrrrI�rGrIc�(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)r!rr)r�partial�expectedrrrr�szIncompleteRead.__init__cC�d|j|jfS)Nz/IncompleteRead(%i bytes read, %i more expected))rKrLrrrr�__repr__��zIncompleteRead.__repr__�rrr	r
rrNr&rrrrr�srcrJ)�InvalidChunkLengthz+Invalid chunk length in a chunked response.cs(tt|��|��|j�||_||_dSr)r!rQr�tell�length_remaining�response�length)rrTrUrrrr
s


�
zInvalidChunkLength.__init__cCrM)Nz0InvalidChunkLength(got length %r, %i bytes read))rUrKrrrrrNrOzInvalidChunkLength.__repr__rPrrrrrQsrQc@r)�
InvalidHeaderz(The header provided was somehow invalid.NrrrrrrVr
rVcr)�ProxySchemeUnknownz1ProxyManager does not support the supplied schemecs6|dkrd}|dur
d}nd|}tt|��|�dS)N�	localhostz>Proxy URL had no scheme, should start with http:// or https://zCProxy URL had unsupported scheme %s, should use http:// or https://)r!rWrr<rrrr#s��zProxySchemeUnknown.__init__r%rrrrrWsrWc@r)�ProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedNrrrrrrY2r
rYcr)�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)r!rZr)r�defects�
unparsed_datarrrrr;szHeaderParsingError.__init__r%rrrrrZ8r'rZc@r)�UnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNrrrrrr^@r
r^N).�
__future__r�six.moves.http_clientr�httplib_IncompleteRead�	Exceptionr�Warningrrrrr r(r)�ConnectionErrorr*r-r0r1r2r3r4r5r6�
ValueErrorr7r8r:r=r@rArBrCrDrErFrHrIrQrV�AssertionErrorrWrYrZr^rrrr�<module>sP	


		

Spamworldpro Mini