usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyo000064400000032033147205644310021134 0ustar00 abc@@s(ddlmZddlmZdefdYZdefdYZdefd YZ d e fd YZ d efd YZ defdYZ defdYZ defdYZeZde fdYZde fdYZdefdYZdefdYZdee fdYZdefdYZd ee fd!YZd"e fd#YZd$e fd%YZd&eefd'YZd(efd)YZd*efd+YZd,efd-YZd.efd/YZd0efd1YZd2efd3YZ d4efd5YZ!d6efd7YZ"d8efd9YZ#d:eefd;YZ$d<efd=YZ%d>eefd?YZd@efdAYZ&dBe'efdCYZ(dDefdEYZ)dFefdGYZ*dHS(Ii(tabsolute_importi(tIncompleteReadt HTTPErrorcB@seZdZRS(s#Base exception used by this module.(t__name__t __module__t__doc__(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyRst HTTPWarningcB@seZdZRS(s!Base warning used by this module.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR st PoolErrorcB@s eZdZdZdZRS(s/Base exception for errors caused within a pool.cC@s'||_tj|d||fdS(Ns%s: %s(tpoolRt__init__(tselfRtmessage((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR s cC@s |jdfS(N(NN(t __class__tNone(R ((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyt __reduce__s(RRRR R(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyRs t RequestErrorcB@s eZdZdZdZRS(s8Base exception for PoolErrors that have associated URLs.cC@s ||_tj|||dS(N(turlRR (R RRR ((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR s cC@s|jd|jdffS(N(R R R(R ((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR#s(RRRR R(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyRs tSSLErrorcB@seZdZRS(s9Raised when SSL certificate fails in an HTTPS connection.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR(st ProxyErrorcB@seZdZRS(s,Raised when the connection to a proxy fails.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR-st DecodeErrorcB@seZdZRS(s;Raised when automatic decoding based on Content-Type fails.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR2st ProtocolErrorcB@seZdZRS(s>Raised when something unexpected happens mid-request/response.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR7st MaxRetryErrorcB@seZdZddZRS(s 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 cC@s3||_d||f}tj||||dS(Ns0Max retries exceeded with url: %s (Caused by %r)(treasonRR (R RRRR ((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR Ls  N(RRRR R (((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyRBstHostChangedErrorcB@seZdZddZRS(s?Raised when an existing pool gets a request for a foreign host.icC@s-d|}tj||||||_dS(Ns)Tried to open a foreign host with url: %s(RR tretries(R RRRR ((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR Xs (RRRR (((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyRUstTimeoutStateErrorcB@seZdZRS(s3 Raised when passing an invalid state to a timeout (RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR^st TimeoutErrorcB@seZdZRS(s Raised when a socket timeout error occurs. Catching this error will catch both :exc:`ReadTimeoutErrors ` and :exc:`ConnectTimeoutErrors `. (RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyRcstReadTimeoutErrorcB@seZdZRS(sFRaised when a socket timeout occurs while receiving data from a server(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyRlstConnectTimeoutErrorcB@seZdZRS(s@Raised when a socket timeout occurs while connecting to a server(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyRsstNewConnectionErrorcB@seZdZRS(sHRaised when we fail to establish a new connection. Usually ECONNREFUSED.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyRxstEmptyPoolErrorcB@seZdZRS(sCRaised when a pool runs out of connections and no more are allowed.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR}stClosedPoolErrorcB@seZdZRS(sCRaised when a request enters a pool after the pool has been closed.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyRstLocationValueErrorcB@seZdZRS(s<Raised when there is something wrong with a given URL input.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR stLocationParseErrorcB@seZdZdZRS(s=Raised when get_host or similar fails to parse the URL input.cC@s'd|}tj||||_dS(NsFailed to parse: %s(RR tlocation(R R"R ((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR s (RRRR (((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR!st ResponseErrorcB@seZdZdZdZRS(sDUsed as a container for an error reason supplied in a MaxRetryError.stoo many error responsess&too many {status_code} error responses(RRRt GENERIC_ERRORtSPECIFIC_ERROR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR#stSecurityWarningcB@seZdZRS(s/Warned when perfoming security reducing actions(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR&stSubjectAltNameWarningcB@seZdZRS(sBWarned when connecting to a host with a certificate missing a SAN.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR'stInsecureRequestWarningcB@seZdZRS(s/Warned when making an unverified HTTPS request.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR(stSystemTimeWarningcB@seZdZRS(s0Warned when system time is suspected to be wrong(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR)stInsecurePlatformWarningcB@seZdZRS(sEWarned when certain SSL configuration is not available on a platform.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR*stSNIMissingWarningcB@seZdZRS(s9Warned when making a HTTPS request without SNI available.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR+stDependencyWarningcB@seZdZRS(sc Warned when an attempt is made to import a module with missing optional dependencies. (RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR,stResponseNotChunkedcB@seZdZRS(s;Response needs to be chunked in order to read it as chunks.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR-stBodyNotHttplibCompatiblecB@seZdZRS(sz Body should be httplib.HTTPResponse like (have an fp attribute which returns raw chunks) for read_chunked(). (RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR.sRcB@s eZdZdZdZRS(s 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. cC@stt|j||dS(N(tsuperRR (R tpartialtexpected((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR scC@sd|j|jfS(Ns/IncompleteRead(%i bytes read, %i more expected)(R0R1(R ((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyt__repr__s(RRRR R2(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyRs t InvalidHeadercB@seZdZRS(s(The header provided was somehow invalid.(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR3stProxySchemeUnknowncB@seZdZdZRS(s1ProxyManager does not support the supplied schemecC@s$d|}tt|j|dS(NsNot supported proxy scheme %s(R/R4R (R tschemeR ((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR s (RRRR (((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR4stHeaderParsingErrorcB@seZdZdZRS(sNRaised by assert_header_parsing, but we convert it to a log.warning statement.cC@s0d|p d|f}tt|j|dS(Ns%s, unparsed data: %rtUnknown(R/R6R (R tdefectst unparsed_dataR ((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR s(RRRR (((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR6stUnrewindableBodyErrorcB@seZdZRS(s9urllib3 encountered an error when trying to rewind a body(RRR(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pyR:sN(+t __future__Rtpackages.six.moves.http_clientRthttplib_IncompleteReadt ExceptionRtWarningRRRRRRRtConnectionErrorRRRRRRRRRt ValueErrorR R!R#R&R'R(R)R*R+R,R-R.R3tAssertionErrorR4R6R:(((sB/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/exceptions.pytsH      usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyo000064400000015406147205656540021450 0ustar00 abc@sdZddlmZdefdYZdefdYZdefdYZd efd YZd efd YZd efdYZ dee fdYZ de fdYZ defdYZ defdYZ deefdYZdeefdYZdeefdYZdeefdYZdefd YZd!eefd"YZd#eefd$YZd%efd&YZd'efd(YZd)efd*YZd+eefd,YZd-efd.YZd/S(0s` requests.exceptions ~~~~~~~~~~~~~~~~~~~ This module contains the set of Requests' exceptions. i(t HTTPErrortRequestExceptioncBseZdZdZRS(sTThere was an ambiguous exception that occurred while handling your request. cOs|jdd}||_|jdd|_|dk rg|j rgt|drg|jj|_ntt|j||dS(sBInitialize RequestException with `request` and `response` objects.tresponsetrequestN(tpoptNoneRRthasattrtsuperRt__init__(tselftargstkwargsR((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyRs (t__name__t __module__t__doc__R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyR sRcBseZdZRS(sAn HTTP error occurred.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyRstConnectionErrorcBseZdZRS(sA Connection error occurred.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyR st ProxyErrorcBseZdZRS(sA proxy error occurred.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyR$stSSLErrorcBseZdZRS(sAn SSL error occurred.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyR(stTimeoutcBseZdZRS(sThe request timed out. Catching this error will catch both :exc:`~requests.exceptions.ConnectTimeout` and :exc:`~requests.exceptions.ReadTimeout` errors. (R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyR,stConnectTimeoutcBseZdZRS(sThe request timed out while trying to connect to the remote server. Requests that produced this error are safe to retry. (R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyR5st ReadTimeoutcBseZdZRS(s@The server did not send any data in the allotted amount of time.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyR<st URLRequiredcBseZdZRS(s*A valid URL is required to make a request.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyR@stTooManyRedirectscBseZdZRS(sToo many redirects.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyRDst MissingSchemacBseZdZRS(s/The URL schema (e.g. http or https) is missing.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyRHst InvalidSchemacBseZdZRS(s"See defaults.py for valid schemas.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyRLst InvalidURLcBseZdZRS(s%The URL provided was somehow invalid.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyRPst InvalidHeadercBseZdZRS(s.The header value provided was somehow invalid.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyRTstChunkedEncodingErrorcBseZdZRS(s?The server declared chunked encoding but sent an invalid chunk.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyRXstContentDecodingErrorcBseZdZRS(s!Failed to decode response content(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyR\stStreamConsumedErrorcBseZdZRS(s2The content for this response was already consumed(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyR`st RetryErrorcBseZdZRS(sCustom retries logic failed(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyRdstUnrewindableBodyErrorcBseZdZRS(s:Requests encountered an error when trying to rewind a body(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyRhstRequestsWarningcBseZdZRS(sBase warning for Requests.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyR nstFileModeWarningcBseZdZRS(sJA file was opened in text mode, but Requests determined its binary length.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyR!sstRequestsDependencyWarningcBseZdZRS(s@An imported dependency doesn't match the expected version range.(R R R(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyR"xsN(Rtpip._vendor.urllib3.exceptionsRt BaseHTTPErrortIOErrorRRRRRRRRRt ValueErrorRRRRRRt TypeErrorRRRtWarningR tDeprecationWarningR!R"(((sC/usr/lib/python2.7/site-packages/pip/_vendor/requests/exceptions.pyts.