a 97aD@s,ddlmZmZmZdddZdddZdS) )create_urllib3_contextresolve_cert_reqsresolve_ssl_versionNcCs4|dur 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) NFhttphttpsT)schemeZuse_forwarding_for_https) proxy_urlZ proxy_configZdestination_schemer m/private/var/folders/s6/9n5zrl012gv99k63s4q6ccsd4s6mqz/T/pip-target-f5cq3f2q/lib/python/urllib3/util/proxy.pyconnection_requires_http_tunnelsr cCs6tt|t|d}|s2|s2|s2t|dr2||S)z\ Generates a default proxy ssl context if one hasn't been provided by the user. ) ssl_version cert_reqsload_default_certs)rrrhasattrr)r r ca_certs ca_cert_dir ca_cert_data ssl_contextr r r create_proxy_ssl_context%sr)NNN)NNN)ssl_rrrr rr r r r s "