File tree Expand file tree Collapse file tree 3 files changed +2
-22
lines changed Expand file tree Collapse file tree 3 files changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,7 @@ its bundle, ``certifi`` removed them as well.
3737
3838In previous versions, ``certifi `` provided the ``certifi.old_where() `` function
3939to intentionally re-add the 1024-bit roots back into your bundle. This was not
40- recommended in production and therefore was removed. To assist in migrating old
41- code, the function ``certifi.old_where() `` continues to exist as an alias of
42- ``certifi.where() ``. Please update your code to use ``certifi.where() ``
43- instead. ``certifi.old_where() `` will be removed in 2018.
40+ recommended in production and therefore was removed at the end of 2018.
4441
4542.. _`Certifi` : https://certifi.io/en/latest/
4643.. _`Requests` : http://docs.python-requests.org/en/latest/
Original file line number Diff line number Diff line change 1- from .core import where , old_where
1+ from .core import where
22
33__version__ = "2018.10.15"
Original file line number Diff line number Diff line change 88This module returns the installation location of cacert.pem.
99"""
1010import 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- """
1911
2012
2113def where ():
@@ -24,14 +16,5 @@ def where():
2416 return os .path .join (f , 'cacert.pem' )
2517
2618
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-
3619if __name__ == '__main__' :
3720 print (where ())
You can’t perform that action at this time.
0 commit comments