3

Z'ícEã@s,ddlmZmZmZddd„Zddd„ZdS)	é)Úcreate_urllib3_contextÚresolve_cert_reqsÚresolve_ssl_versionNcCs4|dkrdS|dkrdS|jdkr0|r0|jr0dSdS)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)ÚschemeZuse_forwarding_for_https)Ú	proxy_urlZproxy_configZdestination_scheme©r	ú5/tmp/pip-build-gk9425m9/urllib3/urllib3/util/proxy.pyÚconnection_requires_http_tunnels
rcCs<tt|ƒt|ƒd}|r8|r8|r8t|dƒr8|jƒ|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)rr
Úca_certsÚca_cert_dirZca_cert_dataÚssl_contextr	r	r
Úcreate_proxy_ssl_context%s
r)NNN)NNN)Ússl_rrrrrr	r	r	r
Ú<module>s
!