From 9b12dd9c3ff59b8925f5abb6548e8e8eea455b4c Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Tue, 28 May 2013 14:33:43 -0500 Subject: Import resource_filename from pkg_resources --HG-- extra : source : 14737efaf19e5a19c92f54c94163003d381aed0b --- setuptools/ssl_support.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setuptools/ssl_support.py') 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 -- cgit v1.2.1