equal
deleted
inserted
replaced
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 |