diff options
author | Shubham Saini <shubham6405@gmail.com> | 2018-12-11 10:01:23 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2018-12-11 10:01:23 +0000 |
commit | 68df54d6629ec019142eb149dd037774f2d11e7c (patch) | |
tree | 345bc22d46b4e01a4ba8303b94278952a4ed2b9e /venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/certifi/core.py |
First commit
Diffstat (limited to 'venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/certifi/core.py')
-rw-r--r-- | venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/certifi/core.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/certifi/core.py b/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/certifi/core.py new file mode 100644 index 0000000..0ac5ee1 --- /dev/null +++ b/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/certifi/core.py | |||
@@ -0,0 +1,37 @@ | |||
1 | #!/usr/bin/env python | ||
2 | # -*- coding: utf-8 -*- | ||
3 | |||
4 | """ | ||
5 | certifi.py | ||
6 | ~~~~~~~~~~ | ||
7 | |||
8 | This module returns the installation location of cacert.pem. | ||
9 | """ | ||
10 | import os | ||
11 | import warnings | ||
12 | |||
13 | |||
14 | class DeprecatedBundleWarning(DeprecationWarning): | ||
15 | """ | ||
16 | The weak security bundle is being deprecated. Please bother your service | ||
17 | provider to get them to stop using cross-signed roots. | ||
18 | """ | ||
19 | |||
20 | |||
21 | def where(): | ||
22 | f = os.path.dirname(__file__) | ||
23 | |||
24 | return os.path.join(f, 'cacert.pem') | ||
25 | |||
26 | |||
27 | def old_where(): | ||
28 | warnings.warn( | ||
29 | "The weak security bundle has been removed. certifi.old_where() is now an alias " | ||
30 | "of certifi.where(). Please update your code to use certifi.where() instead. " | ||
31 | "certifi.old_where() will be removed in 2018.", | ||
32 | DeprecatedBundleWarning | ||
33 | ) | ||
34 | return where() | ||
35 | |||
36 | if __name__ == '__main__': | ||
37 | print(where()) | ||