]> git.pld-linux.org Git - packages/python3-requests.git/blobdiff - system-cert.patch
Up to 2.28.1 (python2 support is gone)
[packages/python3-requests.git] / system-cert.patch
index 082e93434b7e9685737afd923ee6bc4b122a197c..73839200822f54fe0be7b7ee870dd5fcb6dba947 100644 (file)
@@ -1,7 +1,7 @@
 diff -dur requests-2.18.2.orig/requests/certs.py requests-2.18.2/requests/certs.py
 --- requests-2.18.2.orig/requests/certs.py     2017-05-31 11:19:09.000000000 +0200
 +++ requests-2.18.2/requests/certs.py  2017-08-01 14:30:44.000000000 +0200
-@@ -12,7 +12,14 @@
+@@ -11,7 +11,14 @@ If you are packaging Requests, e.g., for
  environment, you can change the definition of where() to return a separately
  packaged CA bundle.
  """
@@ -10,10 +10,11 @@ diff -dur requests-2.18.2.orig/requests/certs.py requests-2.18.2/requests/certs.
 +import os
 +
 +if os.path.exists("/etc/certs/ca-certificates.crt"):
-+     def where():
++    def where():
 +        return "/etc/certs/ca-certificates.crt"
 +else:
 +    from certifi import where
  
- if __name__ == '__main__':
+ if __name__ == "__main__":
      print(where())
+
This page took 0.13139 seconds and 4 git commands to generate.