archlinux-pkgbuilds/python2-requests-git/certs.patch

20 lines
606 B
Diff
Raw Normal View History

2015-12-04 16:25:17 +01:00
--- 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
2015-12-04 16:25:17 +01:00
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())