ó
Ð²Ebc           @@  s°  d  Z  d d l m Z d d l Z d d l Z d d l m Z d d l m Z d d l m	 Z	 d d l
 m Z m Z m Z d d	 l m Z d d
 l m Z m Z m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d Z d Z e	 Z	 d% Z  e j! e" ƒ j# e ƒ  ƒ e j$ d  „ Z% [ e j& d! e j' d" e( ƒe j& d# e j) d" e( ƒe j& d# e j* d" e( ƒe j& d# e j+ d" e( ƒe j, d$ „ Z- d S(&   se   
Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more
i    (   t   absolute_importN(   t   NullHandleri   (   t
   exceptions(   t   __version__(   t   HTTPConnectionPoolt   HTTPSConnectionPoolt   connection_from_url(   t   encode_multipart_formdata(   t   PoolManagert   ProxyManagert   proxy_from_url(   t   HTTPResponse(   t   make_headers(   t   Retry(   t   Timeout(   t   get_hosts(   Andrey Petrov (andrey.petrov@shazow.net)t   MITR   R   R   R	   R   R   R   t   add_stderr_loggerR   t   disable_warningsR   R   R   R
   c         C@  s_   t  j t ƒ } t  j ƒ  } | j t  j d ƒ ƒ | j | ƒ | j |  ƒ | j d t ƒ | S(   s†   
    Helper for quickly adding a StreamHandler to the logger. Useful for
    debugging.

    Returns the handler after adding it.
    s%   %(asctime)s %(levelname)s %(message)ss,   Added a stderr logging handler to logger: %s(	   t   loggingt	   getLoggert   __name__t   StreamHandlert   setFormattert	   Formattert
   addHandlert   setLevelt   debug(   t   levelt   loggert   handler(    (    s9   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/__init__.pyR   .   s    	t   alwayst   appendt   defaultc         C@  s   t  j d |  ƒ d S(   s<   
    Helper for quickly disabling all urllib3 warnings.
    t   ignoreN(   t   warningst   simplefilter(   t   category(    (    s9   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/__init__.pyR   Q   s    (   R   R   R   R	   R   R   R   R   R   R   R   R   R   R
   (.   t   __doc__t
   __future__R    R   R#   R   t    R   t   _versionR   t   connectionpoolR   R   R   t   filepostR   t   poolmanagerR   R	   R
   t   responseR   t   util.requestR   t
   util.retryR   t   util.timeoutR   t   util.urlR   t
   __author__t   __license__t   __all__R   R   R   t   DEBUGR   R$   t   SecurityWarningt   Truet   SubjectAltNameWarningt   InsecurePlatformWarningt   SNIMissingWarningt   HTTPWarningR   (    (    (    s9   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/__init__.pyt   <module>   sN                