U
    žV_ 
  ã                   @   s@  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mZ ddlZddlmZ dZdZeZdZ e !e"¡ #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)Ú__version__)ÚNullHandlerz(Andrey Petrov (andrey.petrov@shazow.net)ÚMIT)r   r   r	   r
   r   r   r   Úadd_stderr_loggerr   Údisable_warningsr   r   r   r   c                 C   sF   t  t¡}t  ¡ }| t  d¡¡ | |¡ | | ¡ | 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"   ú4/tmp/pip-unpacked-wheel-0gzb0gzi/urllib3/__init__.pyr   0   s    	


r   ÚalwaysT)ÚappendÚdefaultc                 C   s   t  d| ¡ dS )z<
    Helper for quickly disabling all urllib3 warnings.
    ÚignoreN)ÚwarningsÚsimplefilter)Úcategoryr"   r"   r#   r   S   s    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   Ú_versionr   r   r   Ú
__author__Ú__license__Ú__all__r   r   r   ÚDEBUGr   r)   ÚSecurityWarningÚSubjectAltNameWarningÚInsecurePlatformWarningÚSNIMissingWarningÚHTTPWarningr   r"   r"   r"   r#   Ú<module>   s4   