Skip to content
Myr

Merge pull request #2124 from Lukasa/certifi

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

Depend on certifi

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 39f0c66, 52facc7 · Browse files · 2 files+8 added−7 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+8 added−7 removed

  • other:+8 added−7 removed

2 files+8 added−7 removed

modified:requests/certs.py+7 added-6 removed
9 unmodified lines
10If you are packaging Requests, e.g., for a Linux distribution or a managed11environment, you can change the definition of where() to return a separately12packaged CA bundle.13"""1414import os.path1516try:17 from 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')2318def where():19 """Return the preferred certificate bundle."""20 # vendored bundle inside Requests21 return os.path.join(os.path.dirname(__file__), 'cacert.pem')2224if __name__ == '__main__':25 print(where())
modified:setup.py+1 added-1 removed
23 unmodified lines
24 'requests.packages.urllib3.util',25 'requests.packages.urllib3.packages.ssl_match_hostname',26]2728requires = []28requires = ['certifi']2930with open('README.rst') as f:31 readme = f.read()32with open('HISTORY.rst') as f:
30 unmodified lines