Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
wiperf / usr / local / lib / python3.7 / dist-packages / urllib3 / __pycache__ / exceptions.cpython-37.pyc
Size: Mime:
B

²8Y
µ¨	ã@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„dCeƒZ'GdDdE„dEe(eƒZ)GdFdG„dGeƒZ*GdHdI„dIeƒZ+dJS)Ké)Úabsolute_importé)ÚIncompleteReadc@seZdZdZdS)Ú	HTTPErrorz#Base exception used by this module.N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__©r
r
ú7/tmp/pip-install-z4i6eiy2/urllib3/urllib3/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||_t |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||_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
rrsrc@seZdZdZdS)ÚSSLErrorz9Raised when SSL certificate fails in an HTTPS connection.N)rrrr	r
r
r
rr)srcs eZdZdZ‡fdd„Z‡ZS)Ú
ProxyErrorz,Raised when the connection to a proxy fails.cs"tt|ƒj||f|žŽ||_dS)N)ÚsuperrrÚoriginal_error)rrÚerrorÚargs)rr
rr1szProxyError.__init__)rrrr	rÚ
__classcell__r
r
)rrr.src@seZdZdZdS)ÚDecodeErrorz;Raised when automatic decoding based on Content-Type fails.N)rrrr	r
r
r
rr6src@seZdZdZdS)Ú
ProtocolErrorz>Raised when something unexpected happens mid-request/response.N)rrrr	r
r
r
rr;src@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
rrQszMaxRetryError.__init__)N)rrrr	rr
r
r
rrGsrc@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
rr\szHostChangedError.__init__N)r")rrrr	rr
r
r
rr!Ysr!c@seZdZdZdS)ÚTimeoutStateErrorz3 Raised when passing an invalid state to a timeout N)rrrr	r
r
r
rr$bsr$c@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%hsr%c@seZdZdZdS)ÚReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverN)rrrr	r
r
r
rr&rsr&c@seZdZdZdS)ÚConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverN)rrrr	r
r
r
rr'ysr'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@seZdZdZdd„ZdS)ÚLocationParseErrorz=Raised when get_host or similar fails to parse the URL input.cCsd|}t ||¡||_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	Ú
GENERIC_ERRORÚSPECIFIC_ERRORr
r
r
rr.œsr.c@seZdZdZdS)ÚSecurityWarningz0Warned when performing security reducing actionsN)rrrr	r
r
r
rr1¢sr1c@seZdZdZdS)ÚSubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.N)rrrr	r
r
r
rr2§sr2c@seZdZdZdS)ÚInsecureRequestWarningz/Warned when making an unverified HTTPS request.N)rrrr	r
r
r
rr3¬sr3c@seZdZdZdS)ÚSystemTimeWarningz0Warned when system time is suspected to be wrongN)rrrr	r
r
r
rr4±sr4c@seZdZdZdS)ÚInsecurePlatformWarningzEWarned when certain SSL configuration is not available on a platform.N)rrrr	r
r
r
rr5¶sr5c@seZdZdZdS)ÚSNIMissingWarningz9Warned when making a HTTPS request without SNI available.N)rrrr	r
r
r
rr6»sr6c@seZdZdZdS)ÚDependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    N)rrrr	r
r
r
rr7Àsr7c@seZdZdZdS)Ú InvalidProxyConfigurationWarninga^
    Warned when using an HTTPS proxy and an HTTPS URL. Currently
    urllib3 doesn't support HTTPS proxies and the proxy will be
    contacted via HTTP instead. This warning can be fixed by
    changing your HTTPS proxy URL into an HTTP proxy URL.

    If you encounter this warning read this:
    https://github.com/urllib3/urllib3/issues/1850
    N)rrrr	r
r
r
rr8És	r8c@seZdZdZdS)ÚResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.N)rrrr	r
r
r
rr9×sr9c@seZdZdZdS)ÚBodyNotHttplibCompatiblezz
    Body should be httplib.HTTPResponse like (have an fp attribute which
    returns raw chunks) for read_chunked().
    N)rrrr	r
r
r
rr:Üsr:cs(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|ƒ ||¡dS)N)rrr)rÚpartialÚexpected)rr
rrîszIncompleteRead.__init__cCsd|j|jfS)Nz/IncompleteRead(%i bytes read, %i more expected))r;r<)rr
r
rÚ__repr__ñszIncompleteRead.__repr__)rrrr	rr=rr
r
)rrråsrc@seZdZdZdS)Ú
InvalidHeaderz(The header provided was somehow invalid.N)rrrr	r
r
r
rr>øsr>cs eZdZdZ‡fdd„Z‡ZS)ÚProxySchemeUnknownz1ProxyManager does not support the supplied schemecsd|}tt|ƒ |¡dS)NzNot supported proxy scheme %s)rr?r)rÚschemer)rr
rrszProxySchemeUnknown.__init__)rrrr	rrr
r
)rrr?ýsr?cs 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: %rÚUnknown)rrAr)rÚdefectsÚ
unparsed_datar)rr
rr	szHeaderParsingError.__init__)rrrr	rrr
r
)rrrAsrAc@seZdZdZdS)ÚUnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyN)rrrr	r
r
r
rrEsrEN),Ú
__future__rZpackages.six.moves.http_clientrÚhttplib_IncompleteReadÚ	ExceptionrÚWarningrr
rrrrrÚConnectionErrorrr!r$r%r&r'r(r)r*Ú
ValueErrorr+r,r.r1r2r3r4r5r6r7r8r9r:r>ÚAssertionErrorr?rArEr
r
r
rÚ<module>sJ