3
]ð]{
  ã               @   s4  d Z ddlmZ ddl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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dlZddlmZ dZdZdZd&Zej e!ƒj"eƒ ƒ ej#fd d„Z$[ej%d!e	j&d"d#� ej%d$e	j'd"d#� ej%d$e	j(d"d#� ej%d$e	j)d"d#� e	j*fd%d„Z+dS )'z8
urllib3 - Thread-safe connection pooling and re-using.
é    )Úabsolute_importNé   )ÚHTTPConnectionPoolÚHTTPSConnectionPoolÚconnection_from_url)Ú
exceptions)Úencode_multipart_formdata)ÚPoolManagerÚProxyManagerÚproxy_from_url)ÚHTTPResponse)Úmake_headers)Úget_host)ÚTimeout)ÚRetry)ÚNullHandlerz(Andrey Petrov (andrey.petrov@shazow.net)ÚMITz1.25.7r   r   r	   r
   r   r   r   Úadd_stderr_loggerr   Údisable_warningsr   r   r   r   c             C   sF   t jtƒ}t jƒ }|jt jdƒƒ |j|ƒ |j| ƒ |jdtƒ |S )z†
    Helper for quickly adding a StreamHandler to the logger. Useful for
    debugging.

    Returns the handler after adding it.
    z%%(asctime)s %(levelname)s %(message)sz,Added a stderr logging handler to logger: %s)	ÚloggingÚ	getLoggerÚ__name__ÚStreamHandlerÚsetFormatterÚ	FormatterÚ
addHandlerÚsetLevelÚdebug)ÚlevelÚloggerÚhandler© r!   ú3/tmp/pip-build-irfnccat/urllib3/urllib3/__init__.pyr   /   s    	


ÚalwaysT)ÚappendÚdefaultc             C   s   t jd| ƒ dS )z<
    Helper for quickly disabling all urllib3 warnings.
    ÚignoreN)ÚwarningsÚsimplefilter)Úcategoryr!   r!   r"   r   R   s    )r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   ),Ú__doc__Ú
__future__r   r'   Úconnectionpoolr   r   r   Ú r   Úfilepostr   Úpoolmanagerr	   r
   r   Úresponser   Zutil.requestr   Zutil.urlr   Zutil.timeoutr   Z
util.retryr   r   r   Ú
__author__Ú__license__Ú__version__Ú__all__r   r   r   ÚDEBUGr   r(   ÚSecurityWarningÚSubjectAltNameWarningÚInsecurePlatformWarningÚSNIMissingWarningÚHTTPWarningr   r!   r!   r!   r"   Ú<module>   sL                