summaryrefslogtreecommitdiff
path: root/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/certifi/core.py
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@gmail.com>2018-12-11 10:01:23 +0000
committerShubham Saini <shubham6405@gmail.com>2018-12-11 10:01:23 +0000
commit68df54d6629ec019142eb149dd037774f2d11e7c (patch)
tree345bc22d46b4e01a4ba8303b94278952a4ed2b9e /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.py37
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"""
5certifi.py
6~~~~~~~~~~
7
8This module returns the installation location of cacert.pem.
9"""
10import os
11import warnings
12
13
14class 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
21def where():
22 f = os.path.dirname(__file__)
23
24 return os.path.join(f, 'cacert.pem')
25
26
27def 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
36if __name__ == '__main__':
37 print(where())