Skip to content
Myr

Merge pull request #1110 from slingamn/certifi_eol

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Remove support for certifi

authored by Kenneth Reitz · committed by Kenneth Reitz · parents f038f68, 985a906 · Browse files · 2 files+1 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+1 added−11 removed

  • other:+1 added−11 removed

2 files+1 added−11 removed

modified:requests/certs.py+1 added-9 removed
12 unmodified lines
13"""1415import os.path1617certifi = None18try:19 import certifi20except ImportError:21 pass2217def where():18 """Return the preferred certificate bundle."""25 if certifi:26 return certifi.where()2719 # vendored bundle inside Requests20 return os.path.join(os.path.dirname(__file__), 'cacert.pem')2122if __name__ == '__main__':23 print(where())
modified:requests/utils.py-2 removed
26 unmodified lines
27_hush_pyflakes = (RequestsCookieJar,)2829NETRC_FILES = ('.netrc', '_netrc')3031# if certifi is installed, use its CA bundle;32# otherwise, try and use the OS bundle31DEFAULT_CA_BUNDLE_PATH = certs.where()3233def dict_to_sequence(d):34 """Returns an internal sequence dictionary update."""
548 unmodified lines