HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/urllib3/__pycache__/__init__.cpython-310.pyc
o

we��
@s�dZddlmZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZdd	l
mZdd
lmZmZmZddlmZmZddlmZmZmZdd
lmZmZddlmZddlm Z ddl!m"Z"zddl#Z#Wn	e$ywYn"we#j%�&d�s�e�'de#j%�d�ej(�ne#j)dkr�e$de#j%�d���zddl*Z*Wn	e+y�Yn	wej'de,dd�dZ-dZ.eZdZ/e�0e1��2e��ej3fdCd d!�Z4[ej5d"ej6d#d$�ej5d%ej7d#d$�ej8fdDd)d*�Z9e�Z:dddd#d#d#dd+dd,�	dEdAdB�Z;dS)Fze
Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more
�)�annotationsN)�NullHandler�)�
exceptions)�
_TYPE_BODY)�HTTPHeaderDict)�__version__)�HTTPConnectionPool�HTTPSConnectionPool�connection_from_url)�_TYPE_FIELDS�encode_multipart_formdata)�PoolManager�ProxyManager�proxy_from_url)�BaseHTTPResponse�HTTPResponse)�make_headers)�Retry)�TimeoutzOpenSSL zWurllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with z5. See: https://github.com/urllib3/urllib3/issues/3020)rrrz5. See: https://github.com/urllib3/urllib3/issues/2168z�'urllib3[secure]' extra is deprecated and will be removed in urllib3 v2.1.0. Read more in this issue: https://github.com/urllib3/urllib3/issues/2680�)�category�
stacklevelz(Andrey Petrov (andrey.petrov@shazow.net)�MIT)r	rr
rrrrr�add_stderr_loggerr�disable_warningsr
rr�requestr�level�int�return�$logging.StreamHandler[typing.TextIO]cCsFt�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__�
StreamHandler�setFormatter�	Formatter�
addHandler�setLevel�debug)r�logger�handler�r,�I/home/arjun/projects/env/lib/python3.10/site-packages/urllib3/__init__.pyrZs


r�alwaysT)�append�defaultr�
type[Warning]�NonecCst�d|�dS)z<
    Helper for quickly disabling all urllib3 warnings.
    �ignoreN)�warnings�simplefilter)rr,r,r-r{sr��	�body�fields�headers�preload_content�decode_content�redirect�retries�timeout�json�method�str�urlr8�_TYPE_BODY | Noner9�_TYPE_FIELDS | Noner:�typing.Mapping[str, str] | Noner;�bool | Noner<r=r>�Retry | bool | int | Noner?�Timeout | float | int | Noner@�typing.Any | Nonerc	
Cs tj||||||||||	|
d�S)aX
    A convenience, top-level request method. It uses a module-global ``PoolManager`` instance.
    Therefore, its side effects could be shared across dependencies relying on it.
    To avoid side effects create a new ``PoolManager`` instance and use it instead.
    The method does not accept low-level ``**urlopen_kw`` keyword arguments.
    r7)�
_DEFAULT_POOLr)rArCr8r9r:r;r<r=r>r?r@r,r,r-r�s�r)rrrr )rr1rr2)rArBrCrBr8rDr9rEr:rFr;rGr<rGr=rGr>rHr?rIr@rJrr)<�__doc__�
__future__rr!�typingr4r�r�_base_connectionr�_collectionsr�_versionr�connectionpoolr	r
r�filepostrr
�poolmanagerrrr�responserr�util.requestr�
util.retryr�util.timeoutr�ssl�ImportError�OPENSSL_VERSION�
startswith�warn�NotOpenSSLWarning�OPENSSL_VERSION_INFO�urllib3_secure_extra�ModuleNotFoundError�DeprecationWarning�
__author__�__license__�__all__r"r#r'�DEBUGrr5�SecurityWarning�InsecurePlatformWarning�HTTPWarningrrKrr,r,r,r-�<module>s����
��
����