archlinux-pkgbuilds/python2-requests-git/certs.patch
Cedric Girard b2adeb81ac Add 'python2-requests-git/' from commit 'da1fbb7342aad3638053aafac9cd451cd59bd4bd'
git-subtree-dir: python2-requests-git
git-subtree-mainline: 8bb329a79c
git-subtree-split: da1fbb7342
2019-02-14 15:32:16 +01:00

20 lines
606 B
Diff

--- requests/certs.py.orig 2015-12-04 16:16:33.773055294 +0100
+++ requests/certs.py 2015-12-04 16:20:30.106729891 +0100
@@ -11,7 +11,6 @@
environment, you can change the definition of where() to return a separately
packaged CA bundle.
"""
-import os.path
try:
from certifi import where
@@ -19,7 +18,7 @@
def where():
"""Return the preferred certificate bundle."""
# vendored bundle inside Requests
- return os.path.join(os.path.dirname(__file__), 'cacert.pem')
+ return "/etc/ssl/certs/ca-certificates.crt"
if __name__ == '__main__':
print(where())