Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pip/_vendor/requests/certs.py: 62%
8 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-07 06:48 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-07 06:48 +0000
1#!/usr/bin/env python
3"""
4requests.certs
5~~~~~~~~~~~~~~
7This module returns the preferred default CA certificate bundle. There is
8only one — the one from the certifi package.
10If you are packaging Requests, e.g., for a Linux distribution or a managed
11environment, you can change the definition of where() to return a separately
12packaged CA bundle.
13"""
15import os
17if "_PIP_STANDALONE_CERT" not in os.environ:
18 from pip._vendor.certifi import where
19else:
20 def where():
21 return os.environ["_PIP_STANDALONE_CERT"]
23if __name__ == "__main__":
24 print(where())