Skip to content
Myr

update certs

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent a00b7e4 · Browse files · 1 file+3 added−8 removed
This commit

State

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

Diff stats

1 file+3 added−8 removed

  • other:+3 added−8 removed

1 file+3 added−8 removed

modified:requests/certs.py+3 added-8 removed
3 unmodified lines
4"""5requests.certs6~~~~~~~~~~~~~~78This module returns the preferred default CA certificate bundle.8This module returns the preferred default CA certificate bundle. There is9only one — the one from the certifi package.1011If you are packaging Requests, e.g., for a Linux distribution or a managed12environment, you can change the definition of where() to return a separately13packaged CA bundle.14"""15import os.path1616try:17 from certifi import where17from certifi import where18except ImportError:19 def where():20 """Return the preferred certificate bundle."""21 # vendored bundle inside Requests22 return os.path.join(os.path.dirname(__file__), 'cacert.pem')1819if __name__ == '__main__':20 print(where())