o dE@s0ddlmZmZmZ dddZ dddZdS))create_urllib3_contextresolve_cert_reqsresolve_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) NFhttphttpsT)schemeuse_forwarding_for_https) proxy_url proxy_configdestination_schemer m/private/var/folders/v1/_jykv66s6qd26_69j1njbrl80000gr/T/pip-target-p1gutpg6/lib/python/urllib3/util/proxy.pyconnection_requires_http_tunnelsrcCs6tt|t|d}|s|s|st|dr||S)z\ Generates a default proxy ssl context if one hasn't been provided by the user. ) ssl_version cert_reqsload_default_certs)rrrhasattrr)rrca_certs ca_cert_dir ca_cert_data ssl_contextr r r create_proxy_ssl_context%sr)NNN)ssl_rrrrrr r r r s  "