From 4b6e1f43acfe225d0f52f066984e61674f162b83 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 28 May 2013 17:09:12 -0400 Subject: Prefer namespaced usage --- setuptools/ssl_support.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'setuptools/ssl_support.py') 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 -- cgit v1.2.3