File "exceptions.cpython-37.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python37/lib/python3.7/site-packages/urllib3/__pycache__/exceptions.cpython-37.pyc
File size: 11.73 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit

B

` @s~ddlmZddlmZGdddeZGdddeZGdd	d	eZ	Gd
dde	Z
Gdd
d
eZGdddeZGdddeZ
GdddeZeZGddde
ZGddde
ZGdddeZGdddeZGdddee
ZGdddeZGd d!d!ee	ZGd"d#d#e	ZGd$d%d%e	ZGd&d'd'eeZGd(d)d)eZGd*d+d+eZGd,d-d-eZGd.d/d/eZGd0d1d1eZGd2d3d3eZ Gd4d5d5eZ!Gd6d7d7eZ"Gd8d9d9eZ#Gd:d;d;eZ$Gd<d=d=eeZ%Gd>d?d?eZ&Gd@dAdAeeZGdBdCdCeeZ'GdDdEdEeZ(GdFdGdGe)eZ*GdHdIdIeZ+GdJdKdKeZ,GdLdMdMeZ-dNS)O)absolute_import)IncompleteReadc@seZdZdZdS)	HTTPErrorz#Base exception used by this module.N)__name__
__module____qualname____doc__r
r
C/opt/alt/python37/lib/python3.7/site-packages/urllib3/exceptions.pyrsrc@seZdZdZdS)HTTPWarningz!Base warning used by this module.N)rrrr	r
r
r
rrsrc@s eZdZdZddZddZdS)	PoolErrorz/Base exception for errors caused within a pool.cCs||_t|d||fdS)Nz%s: %s)poolr__init__)selfrmessager
r
rrszPoolError.__init__cCs
|jdfS)N)NN)	__class__)rr
r
r
__reduce__szPoolError.__reduce__N)rrrr	rrr
r
r
rr
sr
c@s eZdZdZddZddZdS)RequestErrorz8Base exception for PoolErrors that have associated URLs.cCs||_t|||dS)N)urlr
r)rrrrr
r
rr#szRequestError.__init__cCs|jd|jdffS)N)rr)rr
r
rr'szRequestError.__reduce__N)rrrr	rrr
r
r
rr src@seZdZdZdS)SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.N)rrrr	r
r
r
rr,srcs eZdZdZfddZZS)
ProxyErrorz,Raised when the connection to a proxy fails.cs"tt|j||f|||_dS)N)superrroriginal_error)rrerrorargs)rr
rr5szProxyError.__init__)rrrr	r
__classcell__r
r
)rrr2src@seZdZdZdS)DecodeErrorz;Raised when automatic decoding based on Content-Type fails.N)rrrr	r
r
r
rr:src@seZdZdZdS)
ProtocolErrorz>Raised when something unexpected happens mid-request/response.N)rrrr	r
r
r
rr@src@seZdZdZdddZdS)
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
rrWszMaxRetryError.__init__)N)rrrr	rr
r
r
rrMsrc@seZdZdZdddZdS)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)rrretries)rrrr#rr
r
rrbszHostChangedError.__init__N)r")rrrr	rr
r
r
rr!_sr!c@seZdZdZdS)TimeoutStateErrorz1Raised when passing an invalid state to a timeoutN)rrrr	r
r
r
rr$hsr$c@seZdZdZdS)TimeoutErrorzRaised when a socket timeout error occurs.

    Catching this error will catch both :exc:`ReadTimeoutErrors
    <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
    N)rrrr	r
r
r
rr%nsr%c@seZdZdZdS)ReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverN)rrrr	r
r
r
rr&xsr&c@seZdZdZdS)ConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverN)rrrr	r
r
r
rr'sr'c@seZdZdZdS)NewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.N)rrrr	r
r
r
rr(sr(c@seZdZdZdS)EmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.N)rrrr	r
r
r
rr)sr)c@seZdZdZdS)ClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.N)rrrr	r
r
r
rr*sr*c@seZdZdZdS)LocationValueErrorz<Raised when there is something wrong with a given URL input.N)rrrr	r
r
r
rr+sr+c@seZdZdZddZdS)LocationParseErrorz=Raised when get_host or similar fails to parse the URL input.cCsd|}t||||_dS)NzFailed to parse: %s)rrlocation)rr-rr
r
rrszLocationParseError.__init__N)rrrr	rr
r
r
rr,sr,cs eZdZdZfddZZS)URLSchemeUnknownz2Raised when a URL input has an unsupported scheme.cs"d|}tt||||_dS)NzNot supported URL scheme %s)rr.rscheme)rr/r)rr
rrszURLSchemeUnknown.__init__)rrrr	rrr
r
)rrr.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
rr0sr0c@seZdZdZdS)SecurityWarningz0Warned when performing security reducing actionsN)rrrr	r
r
r
rr1sr1c@seZdZdZdS)SubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.N)rrrr	r
r
r
rr2sr2c@seZdZdZdS)InsecureRequestWarningz/Warned when making an unverified HTTPS request.N)rrrr	r
r
r
rr3sr3c@seZdZdZdS)SystemTimeWarningz0Warned when system time is suspected to be wrongN)rrrr	r
r
r
rr4sr4c@seZdZdZdS)InsecurePlatformWarningzIWarned when certain TLS/SSL configuration is not available on a platform.N)rrrr	r
r
r
rr5sr5c@seZdZdZdS)SNIMissingWarningz9Warned when making a HTTPS request without SNI available.N)rrrr	r
r
r
rr6sr6c@seZdZdZdS)DependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    N)rrrr	r
r
r
rr7sr7c@seZdZdZdS)ResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.N)rrrr	r
r
r
rr8sr8c@seZdZdZdS)BodyNotHttplibCompatiblez
    Body should be :class:`http.client.HTTPResponse` like
    (have an fp attribute which returns raw chunks) for read_chunked().
    N)rrrr	r
r
r
rr9sr9cs(eZdZdZfddZddZZS)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|||dS)N)rrr)rpartialexpected)rr
rrszIncompleteRead.__init__cCsd|j|jfS)Nz/IncompleteRead(%i bytes read, %i more expected))r:r;)rr
r
r__repr__szIncompleteRead.__repr__)rrrr	rr<rr
r
)rrrsrcs(eZdZdZfddZddZZS)InvalidChunkLengthz+Invalid chunk length in a chunked response.cs(tt|||j||_||_dS)N)rr=rtellZlength_remainingresponselength)rr?r@)rr
rr
s
zInvalidChunkLength.__init__cCsd|j|jfS)Nz0InvalidChunkLength(got length %r, %i bytes read))r@r:)rr
r
rr<szInvalidChunkLength.__repr__)rrrr	rr<rr
r
)rrr=sr=c@seZdZdZdS)
InvalidHeaderz(The header provided was somehow invalid.N)rrrr	r
r
r
rrAsrAcs eZdZdZfddZZS)ProxySchemeUnknownz1ProxyManager does not support the supplied schemecs6|dkrd}|dkrd}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://)rrBr)rr/r)rr
rr#szProxySchemeUnknown.__init__)rrrr	rrr
r
)rrrBsrBc@seZdZdZdS)ProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedN)rrrr	r
r
r
rrC2srCcs eZdZdZfddZZS)HeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.cs$d|pd|f}tt||dS)Nz%s, unparsed data: %rUnknown)rrDr)rdefectsZ
unparsed_datar)rr
rr;szHeaderParsingError.__init__)rrrr	rrr
r
)rrrD8srDc@seZdZdZdS)UnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyN)rrrr	r
r
r
rrG@srGN).
__future__rZpackages.six.moves.http_clientrZhttplib_IncompleteRead	ExceptionrWarningrr
rrrrrConnectionErrorrr!r$r%r&r'r(r)r*
ValueErrorr+r,r.r0r1r2r3r4r5r6r7r8r9r=rAAssertionErrorrBrCrDrGr
r
r
r<module>sN