Update certifi to 2017.11.05

This commit is contained in:
JonnyWong16 2017-12-26 15:26:43 -08:00
parent b1a3dd1a46
commit f1783df8d6
5 changed files with 1068 additions and 2366 deletions

3
lib/certifi/__init__.py Normal file
View file

@ -0,0 +1,3 @@
from .core import where, old_where
__version__ = "2017.11.05"

2
lib/certifi/__main__.py Normal file
View 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
View 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())

File diff suppressed because it is too large Load diff