diff options
author | Eric Larson <eric@ionrock.org> | 2013-05-28 14:33:43 -0500 |
---|---|---|
committer | Eric Larson <eric@ionrock.org> | 2013-05-28 14:33:43 -0500 |
commit | 9b12dd9c3ff59b8925f5abb6548e8e8eea455b4c (patch) | |
tree | 8d1168665d65c3b14d2169952298555dab4d973c /setuptools/ssl_support.py | |
parent | dd5da9cf82d57afdf074c873c6403beb830df7e8 (diff) | |
download | external_python_setuptools-9b12dd9c3ff59b8925f5abb6548e8e8eea455b4c.tar.gz external_python_setuptools-9b12dd9c3ff59b8925f5abb6548e8e8eea455b4c.tar.bz2 external_python_setuptools-9b12dd9c3ff59b8925f5abb6548e8e8eea455b4c.zip |
Import resource_filename from pkg_resources
--HG--
extra : source : 14737efaf19e5a19c92f54c94163003d381aed0b
Diffstat (limited to 'setuptools/ssl_support.py')
-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 |