o
ai
@ s@ d Z ddlmZ ddlZddlZddlmZ ddlmZ ddlm Z ddl
mZmZm
Z
dd lmZ dd
lmZmZmZ ddlmZ ddlmZ dd
lmZ ddlmZ ddlmZ dZdZe Z dZ e!e"#e ej$fddZ%[ej&dej'dd ej&dej(dd ej&dej)dd ej&dej*dd ej+fddZ,dS )ze
Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more
)absolute_importN)NullHandler )
exceptions)__version__)HTTPConnectionPoolHTTPSConnectionPoolconnection_from_url)encode_multipart_formdata)PoolManagerProxyManagerproxy_from_url)HTTPResponse)make_headers)Retry)Timeout)get_hostz(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 || || |dt |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__
StreamHandlersetFormatter Formatter
addHandlersetLeveldebug)levelloggerhandler r" /builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/urllib3/__init__.pyr . s
r alwaysT)appenddefaultc C s t d| dS )z<
Helper for quickly disabling all urllib3 warnings.
ignoreN)warningssimplefilter)categoryr" r" r# r Q s r )-__doc__
__future__r r r( r r _versionr connectionpoolr r r filepostr
poolmanagerr r r
responser Zutil.requestr Z
util.retryr Zutil.timeoutr Zutil.urlr
__author____license____all__r r r DEBUGr r) SecurityWarningSubjectAltNameWarningInsecurePlatformWarningSNIMissingWarningHTTPWarningr r" r" r" r#