mercurial/sslutil.py
changeset 30669 10b17ed9b591
parent 30641 16b5df5792a8
child 31074 2912b06905dc
equal deleted inserted replaced
30668:3fcaf0f660ce 30669:10b17ed9b591
   667     * presumably is an Apple Python that uses Apple OpenSSL which has patches
   667     * presumably is an Apple Python that uses Apple OpenSSL which has patches
   668       for using system certificate store CAs in addition to the provided
   668       for using system certificate store CAs in addition to the provided
   669       cacerts file
   669       cacerts file
   670     """
   670     """
   671     if (pycompat.sysplatform != 'darwin' or
   671     if (pycompat.sysplatform != 'darwin' or
   672                         util.mainfrozen() or not sys.executable):
   672                         util.mainfrozen() or not pycompat.sysexecutable):
   673         return False
   673         return False
   674     exe = os.path.realpath(sys.executable).lower()
   674     exe = os.path.realpath(pycompat.sysexecutable).lower()
   675     return (exe.startswith('/usr/bin/python') or
   675     return (exe.startswith('/usr/bin/python') or
   676             exe.startswith('/system/library/frameworks/python.framework/'))
   676             exe.startswith('/system/library/frameworks/python.framework/'))
   677 
   677 
   678 _systemcacertpaths = [
   678 _systemcacertpaths = [
   679     # RHEL, CentOS, and Fedora
   679     # RHEL, CentOS, and Fedora