mercurial/sslutil.py
changeset 29483 918dce4b8c26
parent 29482 4e72995f6c9c
child 29484 53b7fc7cc2bb
--- a/mercurial/sslutil.py	Fri Jul 01 18:03:51 2016 -0700
+++ b/mercurial/sslutil.py	Fri Jul 01 19:04:39 2016 -0700
@@ -197,7 +197,7 @@
                                       cafile)
             else:
                 # CAs not defined in config. Try to find system bundles.
-                cafile = _defaultcacerts()
+                cafile = _defaultcacerts(ui)
                 if cafile:
                     ui.debug('using %s for CA file\n' % cafile)
 
@@ -430,7 +430,7 @@
     return (exe.startswith('/usr/bin/python') or
             exe.startswith('/system/library/frameworks/python.framework/'))
 
-def _defaultcacerts():
+def _defaultcacerts(ui):
     """return path to default CA certificates or None."""
     if _plainapplepython():
         dummycert = os.path.join(os.path.dirname(__file__), 'dummycert.pem')