]>
Commit | Line | Data |
---|---|---|
0989c03f JK |
1 | diff -dur requests-2.18.2.orig/requests/certs.py requests-2.18.2/requests/certs.py |
2 | --- requests-2.18.2.orig/requests/certs.py 2017-05-31 11:19:09.000000000 +0200 | |
3 | +++ requests-2.18.2/requests/certs.py 2017-08-01 14:30:44.000000000 +0200 | |
594bc38a | 4 | @@ -11,7 +11,14 @@ If you are packaging Requests, e.g., for |
0989c03f JK |
5 | environment, you can change the definition of where() to return a separately |
6 | packaged CA bundle. | |
7 | """ | |
8 | -from certifi import where | |
9 | + | |
10 | +import os | |
11 | + | |
12 | +if os.path.exists("/etc/certs/ca-certificates.crt"): | |
594bc38a | 13 | + def where(): |
9e57f9c2 | 14 | + return "/etc/certs/ca-certificates.crt" |
0989c03f JK |
15 | +else: |
16 | + from certifi import where | |
bd090171 | 17 | |
594bc38a | 18 | if __name__ == "__main__": |
bd090171 | 19 | print(where()) |
594bc38a | 20 |