Commit d58f9a5f authored by pje's avatar pje

Correct missing import in ssl_support

(grafted from 3b91f246d8de2f54b4b764dfe362a3677a001162)

--HG--
branch : setuptools-0.6
extra : source : 3b91f246d8de2f54b4b764dfe362a3677a001162
parent 7ad02bac
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 @@ 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment