diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2013-05-28 17:09:12 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-05-28 17:09:12 -0400 |
| commit | c5b04036551bb0546ad23fb1c2075328a56d8740 (patch) | |
| tree | d60bb24ae91d9f8d55f3c38c5cf0f4421bce4e11 /setuptools/ssl_support.py | |
| parent | e3c5007fef6adea4a1e3f271a4ec381c8c67a93d (diff) | |
| download | python-setuptools-bitbucket-c5b04036551bb0546ad23fb1c2075328a56d8740.tar.gz | |
Prefer namespaced usage
Diffstat (limited to 'setuptools/ssl_support.py')
| -rw-r--r-- | setuptools/ssl_support.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/ssl_support.py b/setuptools/ssl_support.py index 312a5097..6dca5fab 100644 --- a/setuptools/ssl_support.py +++ b/setuptools/ssl_support.py @@ -1,5 +1,6 @@ import sys, os, socket, urllib2, atexit, re -from pkg_resources import ResolutionError, ExtractionError, resource_filename +import pkg_resources +from pkg_resources import ResolutionError, ExtractionError try: import ssl @@ -236,7 +237,7 @@ def find_ca_bundle(): if os.path.isfile(cert_path): return cert_path try: - return resource_filename('certifi', 'cacert.pem') + return pkg_resources.resource_filename('certifi', 'cacert.pem') except (ImportError, ResolutionError, ExtractionError): return None |
