3 nf\ @s4dZddlmZddlZddlmZmZmZddlm Z ddl m Z ddl m Z mZmZdd lmZdd lmZdd lmZdd lmZdd lmZddlZddlmZdZdZdZd&Zej e!j"eej#fd dZ$[ej%d!e j&d"d#ej%d$e j'd"d#ej%d$e j(d"d#ej%d$e j)d"d#e j*fd%dZ+dS)'z8 urllib3 - Thread-safe connection pooling and re-using. )absolute_importN)HTTPConnectionPoolHTTPSConnectionPoolconnection_from_url) exceptions)encode_multipart_formdata) PoolManager ProxyManagerproxy_from_url) HTTPResponse) make_headers)get_host)Timeout)Retry) NullHandlerz(Andrey Petrov (andrey.petrov@shazow.net)ZMITz1.24.2rrr r r rradd_stderr_loggerrdisable_warningsrrr r cCsFtjt}tj}|jtjd|j||j||jdt|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__Z StreamHandlerZ setFormatterZ Formatter addHandlerZsetLeveldebug)levelZloggerZhandlerr/usr/lib/python3.6/__init__.pyr4s    alwaysT)appenddefaultcCstjd|dS)z< Helper for quickly disabling all urllib3 warnings. ignoreN)warnings simplefilter)categoryrrrrXs)rrr r r rrrrrrrr r ),__doc__Z __future__rr ZconnectionpoolrrrrZfilepostrZ poolmanagerr r r Zresponser Z util.requestr Zutil.urlrZ util.timeoutrZ util.retryrrr __author__Z __license__ __version____all__rrrDEBUGrr!ZSecurityWarningZSubjectAltNameWarningZInsecurePlatformWarningZSNIMissingWarningZ HTTPWarningrrrrrsN