HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/urllib3/__pycache__/exceptions.cpython-310.pyc
o

�N�g �@s~ddlmZddlmZGdd�de�ZGdd�de�ZGdd	�d	e�Z	Gd
d�de	�Z
Gdd
�d
e�ZGdd�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�dCee�Z'GdDdE�dEe�Z(GdFdG�dGe)e�Z*GdHdI�dIe�Z+GdJdK�dKe�Z,GdLdM�dMe�Z-dNS)O�)�absolute_import�)�IncompleteReadc@�eZdZdZdS)�	HTTPErrorz#Base exception used by this module.N��__name__�
__module__�__qualname__�__doc__�rr�F/opt/saltstack/salt/lib/python3.10/site-packages/urllib3/exceptions.pyr�rc@r)�HTTPWarningz!Base warning used by this module.Nrrrrr
rrrc@� 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__s
zPoolError.__reduce__N�rr	r
rrrrrrr
r�rc@r)�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
r rrc@r)�SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nrrrrr
r,rrc� eZdZdZ�fdd�Z�ZS)�
ProxyErrorz,Raised when the connection to a proxy fails.cs$tt|�j||g|�R�||_dSr)�superr!rZoriginal_error)rr�error�argsrrr
r5s
zProxyError.__init__�rr	r
rr�
__classcell__rrrr
r!2�r!c@r)�DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nrrrrr
r(:rr(c@r)�
ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nrrrrr
r)@rr)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
rWszMaxRetryError.__init__r�rr	r
rrrrrr
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/rrrr
rbs
zHostChangedError.__init__N)r.r,rrrr
r-_sr-c@r)�TimeoutStateErrorz1Raised when passing an invalid state to a timeoutNrrrrr
r0hrr0c@r)�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
r1nsr1c@r)�ReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNrrrrr
r2xrr2c@r)�ConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNrrrrr
r3�rr3c@r)�NewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.Nrrrrr
r4�rr4c@r)�EmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nrrrrr
r5�rr5c@r)�ClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nrrrrr
r6�rr6c@r)�LocationValueErrorz<Raised when there is something wrong with a given URL input.Nrrrrr
r7�rr7c@seZdZdZdd�ZdS)�LocationParseErrorz=Raised when get_host or similar fails to parse the URL input.cCsd|}t�||�||_dS)NzFailed to parse: %s)rr�location)rr9rrrr
r�s
zLocationParseError.__init__Nr,rrrr
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;rrrr
r�s
zURLSchemeUnknown.__init__r%rrrr
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)rr	r
rZ
GENERIC_ERRORZSPECIFIC_ERRORrrrr
r=�sr=c@r)�SecurityWarningz0Warned when performing security reducing actionsNrrrrr
r>�rr>c@r)�SubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.Nrrrrr
r?�rr?c@r)�InsecureRequestWarningz/Warned when making an unverified HTTPS request.Nrrrrr
r@�rr@c@r)�SystemTimeWarningz0Warned when system time is suspected to be wrongNrrrrr
rA�rrAc@r)�InsecurePlatformWarningzIWarned when certain TLS/SSL configuration is not available on a platform.Nrrrrr
rB�rrBc@r)�SNIMissingWarningz9Warned when making a HTTPS request without SNI available.Nrrrrr
rC�rrCc@r)�DependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    Nrrrrr
rD��rDc@r)�ResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.Nrrrrr
rF�rrFc@r)�BodyNotHttplibCompatiblez�
    Body should be :class:`http.client.HTTPResponse` like
    (have an fp attribute which returns raw chunks) for read_chunked().
    Nrrrrr
rG�rErGc�(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�expectedrrr
r�szIncompleteRead.__init__cC�d|j|jfS)Nz/IncompleteRead(%i bytes read, %i more expected))rIrJrrrr
�__repr__��zIncompleteRead.__repr__�rr	r
rrrLr&rrrr
r�srcrH)�InvalidChunkLengthz+Invalid chunk length in a chunked response.cs(tt|��|��|j�||_||_dSr)r"rOr�tellZlength_remaining�response�length)rrQrRrrr
r
s


�
zInvalidChunkLength.__init__cCrK)Nz0InvalidChunkLength(got length %r, %i bytes read))rRrIrrrr
rLrMzInvalidChunkLength.__repr__rNrrrr
rOsrOc@r)�
InvalidHeaderz(The header provided was somehow invalid.Nrrrrr
rSrrScr )�ProxySchemeUnknownz1ProxyManager does not support the supplied schemecs6|dkrd}|dur
d}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://)r"rTrr<rrr
r#s��zProxySchemeUnknown.__init__r%rrrr
rTsrTc@r)�ProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedNrrrrr
rU2rrUcr )�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)r"rVr)r�defectsZ
unparsed_datarrrr
r;szHeaderParsingError.__init__r%rrrr
rV8r'rVc@r)�UnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNrrrrr
rX@rrXN).Z
__future__rZpackages.six.moves.http_clientrZhttplib_IncompleteRead�	Exceptionr�Warningrrrrr!r(r)�ConnectionErrorr*r-r0r1r2r3r4r5r6�
ValueErrorr7r8r:r=r>r?r@rArBrCrDrFrGrOrS�AssertionErrorrTrUrVrXrrrr
�<module>sP