Commits

Eric Larson committed f04d4f7

Import resource_filename from pkg_resources

Comments (0)

Files changed (1)

setuptools/ssl_support.py

 import sys, os, socket, urllib2, atexit, re
-from pkg_resources import ResolutionError, ExtractionError
+from pkg_resources import ResolutionError, ExtractionError, resource_filename
 
 try:
     import ssl
             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