mercurial/sslutil.py
branchstable
changeset 42263 ce5f1232631f
parent 41411 f07aff7e8b5a
child 42269 c8d55ff80da1
equal deleted inserted replaced
42253:e45c6b153e51 42263:ce5f1232631f
   720     try:
   720     try:
   721         import certifi
   721         import certifi
   722         certs = certifi.where()
   722         certs = certifi.where()
   723         if os.path.exists(certs):
   723         if os.path.exists(certs):
   724             ui.debug('using ca certificates from certifi\n')
   724             ui.debug('using ca certificates from certifi\n')
   725             return certs
   725             return pycompat.fsencode(certs)
   726     except (ImportError, AttributeError):
   726     except (ImportError, AttributeError):
   727         pass
   727         pass
   728 
   728 
   729     # On Windows, only the modern ssl module is capable of loading the system
   729     # On Windows, only the modern ssl module is capable of loading the system
   730     # CA certificates. If we're not capable of doing that, emit a warning
   730     # CA certificates. If we're not capable of doing that, emit a warning