summarylogtreecommitdiffstats
path: root/certs.patch
diff options
context:
space:
mode:
authorCedric Girard2019-02-15 14:49:40 +0100
committerCedric Girard2019-02-15 14:49:40 +0100
commit2b28048a439cf363d33baa1d5a3900499cc1fadb (patch)
tree159df1f5ece6e9d4865652a1d93530b43d733d2d /certs.patch
parentda1fbb7342aad3638053aafac9cd451cd59bd4bd (diff)
downloadaur-python2-requests-git.tar.gz
upgpkg: python2-requests-git v2.21.0.16.gc9309e4c-1
Diffstat (limited to 'certs.patch')
-rw-r--r--certs.patch23
1 files changed, 8 insertions, 15 deletions
diff --git a/certs.patch b/certs.patch
index 69d27be85abf..06094c422aa7 100644
--- a/certs.patch
+++ b/certs.patch
@@ -1,19 +1,12 @@
---- 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.
+diff -Naur requests.orig/certs.py requests/certs.py
+--- requests.orig/certs.py 2019-02-15 13:43:26.819151260 +0100
++++ requests/certs.py 2019-02-15 13:45:10.316052919 +0100
+@@ -14,5 +14,8 @@
"""
--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"
+ from certifi import where
++def where():
++ return "/etc/ssl/certs/ca-certificates.crt"
++
if __name__ == '__main__':
print(where())