ó
Ð²Ebc           @@  sm  d  d l  m Z d d l m Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d	 „  ƒ  YZ	 d
 e	 f d „  ƒ  YZ
 d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ e Z d e
 f d „  ƒ  YZ d e
 f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e e
 f d „  ƒ  YZ d e f d „  ƒ  YZ d  e e	 f d! „  ƒ  YZ d" e	 f d# „  ƒ  YZ d$ e	 f d% „  ƒ  YZ d& e e f d' „  ƒ  YZ d( e f d) „  ƒ  YZ d* e f d+ „  ƒ  YZ d, e f d- „  ƒ  YZ d. e f d/ „  ƒ  YZ d0 e f d1 „  ƒ  YZ d2 e f d3 „  ƒ  YZ  d4 e f d5 „  ƒ  YZ! d6 e f d7 „  ƒ  YZ" d8 e f d9 „  ƒ  YZ# d: e f d; „  ƒ  YZ$ d< e e f d= „  ƒ  YZ% d> e f d? „  ƒ  YZ& d@ e e f dA „  ƒ  YZ dB e e f dC „  ƒ  YZ' dD e f dE „  ƒ  YZ( dF e) e f dG „  ƒ  YZ* dH e f dI „  ƒ  YZ+ dJ e f dK „  ƒ  YZ, dL e f dM „  ƒ  YZ- dN S(O   i    (   t   absolute_importi   (   t   IncompleteReadt	   HTTPErrorc           B@  s   e  Z d  Z RS(   s#   Base exception used by this module.(   t   __name__t
   __module__t   __doc__(    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR      s   t   HTTPWarningc           B@  s   e  Z d  Z RS(   s!   Base warning used by this module.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR      s   t	   PoolErrorc           B@  s    e  Z d  Z d „  Z d „  Z RS(   s/   Base exception for errors caused within a pool.c         C@  s'   | |  _  t j |  d | | f ƒ d  S(   Ns   %s: %s(   t   poolR   t   __init__(   t   selfR   t   message(    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR	      s    	c         C@  s   |  j  d f S(   N(   NN(   t	   __class__t   None(   R
   (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyt
   __reduce__   s    (   R   R   R   R	   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR      s   	t   RequestErrorc           B@  s    e  Z d  Z d „  Z d „  Z RS(   s8   Base exception for PoolErrors that have associated URLs.c         C@  s    | |  _  t j |  | | ƒ d  S(   N(   t   urlR   R	   (   R
   R   R   R   (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR	   #   s    	c         C@  s   |  j  d  |  j d  f f S(   N(   R   R   R   (   R
   (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR   '   s    (   R   R   R   R	   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR       s   	t   SSLErrorc           B@  s   e  Z d  Z RS(   s9   Raised when SSL certificate fails in an HTTPS connection.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR   ,   s   t
   ProxyErrorc           B@  s   e  Z d  Z d „  Z RS(   s,   Raised when the connection to a proxy fails.c         G@  s)   t  t |  ƒ j | | | Œ | |  _ d  S(   N(   t   superR   R	   t   original_error(   R
   R   t   errort   args(    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR	   5   s    (   R   R   R   R	   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR   2   s   t   DecodeErrorc           B@  s   e  Z d  Z RS(   s;   Raised when automatic decoding based on Content-Type fails.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR   :   s   t   ProtocolErrorc           B@  s   e  Z d  Z RS(   s>   Raised when something unexpected happens mid-request/response.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR   @   s   t   MaxRetryErrorc           B@  s   e  Z d  Z d d „ Z RS(   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

    c         C@  s3   | |  _  d | | f } t j |  | | | ƒ d  S(   Ns0   Max retries exceeded with url: %s (Caused by %r)(   t   reasonR   R	   (   R
   R   R   R   R   (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR	   W   s    	N(   R   R   R   R   R	   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR   M   s   t   HostChangedErrorc           B@  s   e  Z d  Z d d „ Z RS(   s?   Raised when an existing pool gets a request for a foreign host.i   c         C@  s-   d | } t  j |  | | | ƒ | |  _ d  S(   Ns)   Tried to open a foreign host with url: %s(   R   R	   t   retries(   R
   R   R   R   R   (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR	   b   s    
(   R   R   R   R	   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR   _   s   t   TimeoutStateErrorc           B@  s   e  Z d  Z RS(   s1   Raised when passing an invalid state to a timeout(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR   h   s   t   TimeoutErrorc           B@  s   e  Z d  Z RS(   s¿   Raised when a socket timeout error occurs.

    Catching this error will catch both :exc:`ReadTimeoutErrors
    <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
    (   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR   n   s   t   ReadTimeoutErrorc           B@  s   e  Z d  Z RS(   sF   Raised when a socket timeout occurs while receiving data from a server(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR   x   s   t   ConnectTimeoutErrorc           B@  s   e  Z d  Z RS(   s@   Raised when a socket timeout occurs while connecting to a server(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR    €   s   t   NewConnectionErrorc           B@  s   e  Z d  Z RS(   sH   Raised when we fail to establish a new connection. Usually ECONNREFUSED.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR!   †   s   t   EmptyPoolErrorc           B@  s   e  Z d  Z RS(   sC   Raised when a pool runs out of connections and no more are allowed.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR"   Œ   s   t   ClosedPoolErrorc           B@  s   e  Z d  Z RS(   sC   Raised when a request enters a pool after the pool has been closed.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR#   ’   s   t   LocationValueErrorc           B@  s   e  Z d  Z RS(   s<   Raised when there is something wrong with a given URL input.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR$   ˜   s   t   LocationParseErrorc           B@  s   e  Z d  Z d „  Z RS(   s=   Raised when get_host or similar fails to parse the URL input.c         C@  s'   d | } t  j |  | ƒ | |  _ d  S(   Ns   Failed to parse: %s(   R   R	   t   location(   R
   R&   R   (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR	   ¡   s    
(   R   R   R   R	   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR%   ž   s   t   URLSchemeUnknownc           B@  s   e  Z d  Z d „  Z RS(   s2   Raised when a URL input has an unsupported scheme.c         C@  s-   d | } t  t |  ƒ j | ƒ | |  _ d  S(   Ns   Not supported URL scheme %s(   R   R'   R	   t   scheme(   R
   R(   R   (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR	   «   s    
(   R   R   R   R	   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR'   ¨   s   t   ResponseErrorc           B@  s   e  Z d  Z d Z d Z RS(   sD   Used as a container for an error reason supplied in a MaxRetryError.s   too many error responsess&   too many {status_code} error responses(   R   R   R   t   GENERIC_ERRORt   SPECIFIC_ERROR(    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR)   ²   s   t   SecurityWarningc           B@  s   e  Z d  Z RS(   s0   Warned when performing security reducing actions(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR,   ¹   s   t   SubjectAltNameWarningc           B@  s   e  Z d  Z RS(   sB   Warned when connecting to a host with a certificate missing a SAN.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR-   ¿   s   t   InsecureRequestWarningc           B@  s   e  Z d  Z RS(   s/   Warned when making an unverified HTTPS request.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR.   Å   s   t   SystemTimeWarningc           B@  s   e  Z d  Z RS(   s0   Warned when system time is suspected to be wrong(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR/   Ë   s   t   InsecurePlatformWarningc           B@  s   e  Z d  Z RS(   sI   Warned when certain TLS/SSL configuration is not available on a platform.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR0   Ñ   s   t   SNIMissingWarningc           B@  s   e  Z d  Z RS(   s9   Warned when making a HTTPS request without SNI available.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR1   ×   s   t   DependencyWarningc           B@  s   e  Z d  Z RS(   sc   
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    (   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR2   Ý   s   t   ResponseNotChunkedc           B@  s   e  Z d  Z RS(   s;   Response needs to be chunked in order to read it as chunks.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR3   æ   s   t   BodyNotHttplibCompatiblec           B@  s   e  Z d  Z RS(   s‡   
    Body should be :class:`http.client.HTTPResponse` like
    (have an fp attribute which returns raw chunks) for read_chunked().
    (   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR4   ì   s   R   c           B@  s    e  Z d  Z d „  Z d „  Z RS(   sÎ   
    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.
    c         C@  s   t  t |  ƒ j | | ƒ d  S(   N(   R   R   R	   (   R
   t   partialt   expected(    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR	   ý   s    c         C@  s   d |  j  |  j f S(   Ns/   IncompleteRead(%i bytes read, %i more expected)(   R5   R6   (   R
   (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyt   __repr__   s    (   R   R   R   R	   R7   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR   õ   s   	t   InvalidChunkLengthc           B@  s    e  Z d  Z d „  Z d „  Z RS(   s+   Invalid chunk length in a chunked response.c         C@  s8   t  t |  ƒ j | j ƒ  | j ƒ | |  _ | |  _ d  S(   N(   R   R8   R	   t   tellt   length_remainingt   responset   length(   R
   R;   R<   (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR	   
  s    	c         C@  s   d |  j  |  j f S(   Ns0   InvalidChunkLength(got length %r, %i bytes read)(   R<   R5   (   R
   (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR7     s    (   R   R   R   R	   R7   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR8     s   	t   InvalidHeaderc           B@  s   e  Z d  Z RS(   s(   The header provided was somehow invalid.(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR=     s   t   ProxySchemeUnknownc           B@  s   e  Z d  Z d „  Z RS(   s1   ProxyManager does not support the supplied schemec         C@  s$   d | } t  t |  ƒ j | ƒ d  S(   Ns   Not supported proxy scheme %s(   R   R>   R	   (   R
   R(   R   (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR	   #  s    
(   R   R   R   R	   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR>     s   t   ProxySchemeUnsupportedc           B@  s   e  Z d  Z RS(   s=   Fetching HTTPS resources through HTTPS proxies is unsupported(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR?   (  s   t   HeaderParsingErrorc           B@  s   e  Z d  Z d „  Z RS(   sN   Raised by assert_header_parsing, but we convert it to a log.warning statement.c         C@  s0   d | p d | f } t  t |  ƒ j | ƒ d  S(   Ns   %s, unparsed data: %rt   Unknown(   R   R@   R	   (   R
   t   defectst   unparsed_dataR   (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR	   1  s    (   R   R   R   R	   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyR@   .  s   t   UnrewindableBodyErrorc           B@  s   e  Z d  Z RS(   s9   urllib3 encountered an error when trying to rewind a body(   R   R   R   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyRD   6  s   N(.   t
   __future__R    t   packages.six.moves.http_clientR   t   httplib_IncompleteReadt	   ExceptionR   t   WarningR   R   R   R   R   R   R   t   ConnectionErrorR   R   R   R   R   R    R!   R"   R#   t
   ValueErrorR$   R%   R'   R)   R,   R-   R.   R/   R0   R1   R2   R3   R4   R8   R=   t   AssertionErrorR>   R?   R@   RD   (    (    (    s;   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/exceptions.pyt   <module>   sN   	


		
