Viewing File: /usr/lib/python3.6/site-packages/pip/_vendor/urllib3/__pycache__/exceptions.cpython-36.opt-1.pyc

3

ฃ้ajหใ@sLddlmZddlmZGdd„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;eeƒZ$Gd<d=„d=eƒZ%Gd>d?„d?eeƒZGd@dA„dAeƒZ&GdBdC„dCe'eƒZ(GdDdE„dEeƒZ)GdFdG„dGeƒZ*dHS)I้)ฺabsolute_import้)ฺIncompleteReadc@seZdZdZdS)ฺ	HTTPErrorz#Base exception used by this module.N)ฺ__name__ฺ
__module__ฺ__qualname__ฺ__doc__ฉr
r
๚ /usr/lib/python3.6/exceptions.pyrsrc@seZdZdZdS)ฺHTTPWarningz!Base warning used by this module.N)rrrr	r
r
r
rr
src@s eZdZdZdd„Zdd„ZdS)ฺ	PoolErrorz/Base exception for errors caused within a pool.cCs||_tj|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||_tj|||ƒdS)N)ฺurlr
r)rrrrr
r
rrszRequestError.__init__cCs|jd|jdffS)N)rr)rr
r
rr#szRequestError.__reduce__N)rrrr	rrr
r
r
rrsrc@seZdZdZdS)ฺSSLErrorz9Raised when SSL certificate fails in an HTTPS connection.N)rrrr	r
r
r
rr(src@seZdZdZdS)ฺ
ProxyErrorz,Raised when the connection to a proxy fails.N)rrrr	r
r
r
rr-src@seZdZdZdS)ฺDecodeErrorz;Raised when automatic decoding based on Content-Type fails.N)rrrr	r
r
r
rr2src@seZdZdZdS)ฺ
ProtocolErrorz>Raised when something unexpected happens mid-request/response.N)rrrr	r
r
r
rr7src@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}tj||||ƒdS)Nz0Max retries exceeded with url: %s (Caused by %r))ฺreasonrr)rrrrrr
r
rrLs
zMaxRetryError.__init__)N)rrrr	rr
r
r
rrBsrc@seZdZdZddd„ZdS)ฺHostChangedErrorz?Raised when an existing pool gets a request for a foreign host.้cCs"d|}tj||||ƒ||_dS)Nz)Tried to open a foreign host with url: %s)rrฺretries)rrrrrr
r
rrXszHostChangedError.__init__N)r)rrrr	rr
r
r
rrUsrc@seZdZdZdS)ฺTimeoutStateErrorz3 Raised when passing an invalid state to a timeout N)rrrr	r
r
r
rr^src@seZdZdZdS)ฺTimeoutErrorzภ Raised 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 csr c@seZdZdZdS)ฺReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverN)rrrr	r
r
r
rr!lsr!c@seZdZdZdS)ฺConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverN)rrrr	r
r
r
rr"ssr"c@seZdZdZdS)ฺNewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.N)rrrr	r
r
r
rr#xsr#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@seZdZdZdd„ZdS)ฺLocationParseErrorz=Raised when get_host or similar fails to parse the URL input.cCsd|}tj||ƒ||_dS)NzFailed to parse: %s)rrฺlocation)rr(rr
r
rrszLocationParseError.__init__N)rrrr	rr
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)ฺSecurityWarningz/Warned when perfoming security reducing actionsN)rrrr	r
r
r
rr*œsr*c@seZdZdZdS)ฺSubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.N)rrrr	r
r
r
rr+กsr+c@seZdZdZdS)ฺInsecureRequestWarningz/Warned when making an unverified HTTPS request.N)rrrr	r
r
r
rr,ฆsr,c@seZdZdZdS)ฺSystemTimeWarningz0Warned when system time is suspected to be wrongN)rrrr	r
r
r
rr-ซsr-c@seZdZdZdS)ฺInsecurePlatformWarningzEWarned when certain SSL configuration is not available on a platform.N)rrrr	r
r
r
rr.ฐsr.c@seZdZdZdS)ฺSNIMissingWarningz9Warned when making a HTTPS request without SNI available.N)rrrr	r
r
r
rr/ตsr/c@seZdZdZdS)ฺDependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    N)rrrr	r
r
r
rr0บsr0c@seZdZdZdS)ฺResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.N)rrrr	r
r
r
rr1ยsr1c@seZdZdZdS)ฺBodyNotHttplibCompatiblezz
    Body should be httplib.HTTPResponse like (have an fp attribute which
    returns raw chunks) for read_chunked().
    N)rrrr	r
r
r
rr2วsr2cs(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|ƒj||ƒdS)N)ฺsuperrr)rฺpartialฺexpected)rr
rrืszIncompleteRead.__init__cCsd|j|jfS)Nz/IncompleteRead(%i bytes read, %i more expected))r4r5)rr
r
rฺ__repr__ฺszIncompleteRead.__repr__)rrrr	rr6ฺ
__classcell__r
r
)rrrฯsrc@seZdZdZdS)ฺ
InvalidHeaderz(The header provided was somehow invalid.N)rrrr	r
r
r
rr8฿sr8cs eZdZdZ‡fdd„Z‡ZS)ฺProxySchemeUnknownz1ProxyManager does not support the supplied schemecsd|}tt|ƒj|ƒdS)NzNot supported proxy scheme %s)r3r9r)rฺschemer)rr
rr่szProxySchemeUnknown.__init__)rrrr	rr7r
r
)rrr9ไsr9cs eZdZdZ‡fdd„Z‡ZS)ฺHeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.cs$d|pd|f}tt|ƒj|ƒdS)Nz%s, unparsed data: %rZUnknown)r3r;r)rZdefectsZ
unparsed_datar)rr
rr๏szHeaderParsingError.__init__)rrrr	rr7r
r
)rrr;ํsr;c@seZdZdZdS)ฺUnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyN)rrrr	r
r
r
rr<๔sr<N)+Z
__future__rZpackages.six.moves.http_clientrZhttplib_IncompleteReadฺ	ExceptionrฺWarningrr
rrrrrฺConnectionErrorrrrr r!r"r#r$r%ฺ
ValueErrorr&r'r)r*r+r,r-r.r/r0r1r2r8ฺAssertionErrorr9r;r<r
r
r
rฺ<module>sH		
	
Back to Directory File Manager