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: //lib/python3/dist-packages/pip/_vendor/urllib3/util/__pycache__/proxy.cpython-310.pyc
o

@%NeE�@s0ddlmZmZmZ	ddd�Z	ddd�ZdS)�)�create_urllib3_context�resolve_cert_reqs�resolve_ssl_versionNcCs4|durdS|dkrdS|jdkr|r|jrdSdS)a?
    Returns True if the connection requires an HTTP CONNECT through the proxy.

    :param URL proxy_url:
        URL of the proxy.
    :param ProxyConfig proxy_config:
        Proxy configuration from poolmanager.py
    :param str destination_scheme:
        The scheme of the destination. (i.e https, http, etc)
    NF�http�httpsT)�scheme�use_forwarding_for_https)�	proxy_url�proxy_config�destination_scheme�r�@/usr/lib/python3/dist-packages/pip/_vendor/urllib3/util/proxy.py�connection_requires_http_tunnels
��rcCs6tt|�t|�d�}|s|s|st|d�r|��|S)z\
    Generates a default proxy ssl context if one hasn't been provided by the
    user.
    )�ssl_version�	cert_reqs�load_default_certs)rrr�hasattrr)rr�ca_certs�ca_cert_dir�ca_cert_data�ssl_contextrrr
�create_proxy_ssl_context%s�����r)NNN)�ssl_rrrrrrrrr
�<module>s

�"�