VYหใ@s(ddlmZddlmZGdd„deƒZGdd„deƒZGdd „d eƒZ Gd d „d e ƒZ Gd d „d eƒZ Gdd„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 ๚H/tmp/pip-build-04bmskau/requests/requests/packages/urllib3/exceptions.pyrs rc@seZdZdZdS)ฺ HTTPWarningz!Base warning used by this module.N)rrrr r r r r r s r 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 r rs zPoolError.__init__cCs |jdfS)N)NN)ฺ __class__)rr r r ฺ __reduce__szPoolError.__reduce__N)rrrr rrr r r r r s  r c@s.eZdZdZdd„Zdd„ZdS)ฺ RequestErrorz8Base exception for PoolErrors that have associated URLs.cCs ||_tj|||ƒdS)N)ฺurlr r)rrrrr r r rs zRequestError.__init__cCs|jd|jdffS)N)rr)rr r r r#szRequestError.__reduce__N)rrrr rrr r r r rs  rc@seZdZdZdS)ฺSSLErrorz9Raised when SSL certificate fails in an HTTPS connection.N)rrrr r r r r r(s rc@seZdZdZdS)ฺ ProxyErrorz,Raised when the connection to a proxy fails.N)rrrr r r r r r-s rc@seZdZdZdS)ฺ DecodeErrorz;Raised when automatic decoding based on Content-Type fails.N)rrrr r r r r r2s rc@seZdZdZdS)ฺ ProtocolErrorz>Raised when something unexpected happens mid-request/response.N)rrrr r r r r r7s rc@s%eZdZdZddd„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 NcCs3||_d||f}tj||||ƒdS)Nz0Max retries exceeded with url: %s (Caused by %r))ฺreasonrr)rrrrrr r r rLs  zMaxRetryError.__init__)rrrr rr r r r rBs rc@s%eZdZdZddd„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 r rXs zHostChangedError.__init__N)rrrr rr r r r rUs rc@seZdZdZdS)ฺTimeoutStateErrorz3 Raised when passing an invalid state to a timeout N)rrrr r r r r r^s rc@seZdZdZdS)ฺ TimeoutErrorzภ Raised when a socket timeout error occurs. Catching this error will catch both :exc:`ReadTimeoutErrors ` and :exc:`ConnectTimeoutErrors `. N)rrrr r r r r r cs r c@seZdZdZdS)ฺReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverN)rrrr r r r r r!ls r!c@seZdZdZdS)ฺConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverN)rrrr r r r r r"ss r"c@seZdZdZdS)ฺNewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.N)rrrr r r r r r#xs r#c@seZdZdZdS)ฺEmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.N)rrrr r r r r r$}s r$c@seZdZdZdS)ฺClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.N)rrrr r r r r r%‚s r%c@seZdZdZdS)ฺLocationValueErrorzsH