3
ãde  ã               @   sr  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 yddlZW n ek
rÔ   Y nX ej de!dd� dZ"dZ#e	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„Z0dS )*ze
Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more
é    )Úabsolute_importN)ÚNullHandleré   )Ú
exceptions)Ú__version__)ÚHTTPConnectionPoolÚHTTPSConnectionPoolÚconnection_from_url)Úencode_multipart_formdata)ÚPoolManagerÚProxyManagerÚproxy_from_url)ÚHTTPResponse)Úmake_headers)ÚRetry)ÚTimeout)Úget_hostz¥'urllib3[secure]' extra is deprecated and will be removed in a future release of urllib3 2.x. Read more in this issue: https://github.com/urllib3/urllib3/issues/2680é   )ÚcategoryÚ
stacklevelz(Andrey Petrov (andrey.petrov@shazow.net)ÚMITr   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%   úG/var/www/agendate/envp3/lib/python3.6/site-packages/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)r   r%   r%   r&   r   b   s    )r   r   r   r   r   r   r   r   r	   r   r
   r   r   r   )1Ú__doc__Ú
__future__r   r   r+   r   Ú r   Ú_versionr   Úconnectionpoolr   r   r	   Úfilepostr
   Úpoolmanagerr   r   r   Úresponser   Zutil.requestr   Z
util.retryr   Zutil.timeoutr   Zutil.urlr   Zurllib3_secure_extraÚImportErrorÚwarnÚDeprecationWarningÚ
__author__Ú__license__Ú__all__r   r   r   ÚDEBUGr   r,   ÚSecurityWarningÚSubjectAltNameWarningÚInsecurePlatformWarningÚSNIMissingWarningÚHTTPWarningr   r%   r%   r%   r&   Ú<module>   s^                