diff options
-rw-r--r-- | setuptools/ssl_support.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/ssl_support.py b/setuptools/ssl_support.py index d662a1fc..312a5097 100644 --- a/setuptools/ssl_support.py +++ b/setuptools/ssl_support.py @@ -1,5 +1,5 @@ import sys, os, socket, urllib2, atexit, re -from pkg_resources import ResolutionError, ExtractionError +from pkg_resources import ResolutionError, ExtractionError, resource_filename try: import ssl @@ -236,7 +236,7 @@ def find_ca_bundle(): if os.path.isfile(cert_path): return cert_path try: - return pkg_resources.resource_filename('certifi', 'cacert.pem') + return resource_filename('certifi', 'cacert.pem') except (ImportError, ResolutionError, ExtractionError): return None |