R`iE , d dl mZmZmZ ddZ ddZy) )create_urllib3_contextresolve_cert_reqsresolve_ssl_versionNc R | y|dk( ry| j dk( r|r
|j ryy)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)
FhttphttpsT)schemeuse_forwarding_for_https) proxy_urlproxy_configdestination_schemes /builddir/build/BUILDROOT/alt-python312-pip-23.3.1-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/urllib3/util/proxy.pyconnection_requires_http_tunnelr s> V# G#11 c t t | t | }|s |s|st |d r|j |S )z\
Generates a default proxy ssl context if one hasn't been provided by the
user.
)ssl_version cert_reqsload_default_certs)r r r hasattrr )r r ca_certsca_cert_dirca_cert_datassl_contexts r create_proxy_ssl_contextr % sF )'4#I.K
K!56&&(r )NNN)ssl_r r r r r r r