r88998 - sandbox/branches/setuptools-0.6/setuptools/ssl_support.py
Author: phillip.eby Date: Fri May 31 21:32:27 2013 New Revision: 88998 Log: Fix missing import Modified: sandbox/branches/setuptools-0.6/setuptools/ssl_support.py Modified: sandbox/branches/setuptools-0.6/setuptools/ssl_support.py ============================================================================== --- sandbox/branches/setuptools-0.6/setuptools/ssl_support.py (original) +++ sandbox/branches/setuptools-0.6/setuptools/ssl_support.py Fri May 31 21:32:27 2013 @@ -1,5 +1,5 @@ -import sys, os, socket, urllib2, atexit, re -from pkg_resources import ResolutionError, ExtractionError +import sys, os, socket, urllib2, atexit +from pkg_resources import ResolutionError, ExtractionError, resource_filename try: import ssl @@ -236,7 +236,7 @@ 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
participants (1)
-
phillip.eby