mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 00:32:58 -07:00
Update certifi to 2017.11.05
This commit is contained in:
parent
b1a3dd1a46
commit
f1783df8d6
5 changed files with 1068 additions and 2366 deletions
3
lib/certifi/__init__.py
Normal file
3
lib/certifi/__init__.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from .core import where, old_where
|
||||||
|
|
||||||
|
__version__ = "2017.11.05"
|
2
lib/certifi/__main__.py
Normal file
2
lib/certifi/__main__.py
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
from certifi import where
|
||||||
|
print(where())
|
File diff suppressed because it is too large
Load diff
37
lib/certifi/core.py
Normal file
37
lib/certifi/core.py
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
"""
|
||||||
|
certifi.py
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
This module returns the installation location of cacert.pem.
|
||||||
|
"""
|
||||||
|
import os
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
|
||||||
|
class DeprecatedBundleWarning(DeprecationWarning):
|
||||||
|
"""
|
||||||
|
The weak security bundle is being deprecated. Please bother your service
|
||||||
|
provider to get them to stop using cross-signed roots.
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
def where():
|
||||||
|
f = os.path.dirname(__file__)
|
||||||
|
|
||||||
|
return os.path.join(f, 'cacert.pem')
|
||||||
|
|
||||||
|
|
||||||
|
def old_where():
|
||||||
|
warnings.warn(
|
||||||
|
"The weak security bundle is being deprecated. It will be removed in "
|
||||||
|
"2018.",
|
||||||
|
DeprecatedBundleWarning
|
||||||
|
)
|
||||||
|
f = os.path.dirname(__file__)
|
||||||
|
return os.path.join(f, 'weak.pem')
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
print(where())
|
1696
lib/certifi/weak.pem
1696
lib/certifi/weak.pem
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue