33 lines
1002 B
Diff
33 lines
1002 B
Diff
diff --git a/requests/certs.py b/requests/certs.py
|
|
index a14a7ee..a1841ca 100644
|
|
--- a/requests/certs.py
|
|
+++ b/requests/certs.py
|
|
@@ -10,8 +10,12 @@ only one — the one from the certifi package.
|
|
If you are packaging Requests, e.g., for a Linux distribution or a managed
|
|
environment, you can change the definition of where() to return a separately
|
|
packaged CA bundle.
|
|
-"""
|
|
-from certifi import where
|
|
|
|
+This OpenEuler-patched package returns "/etc/pki/tls/certs/ca-bundle.crt" provided
|
|
+by the ca-certificates RPM package.
|
|
+"""
|
|
+def where():
|
|
+ """Return the absolute path to the system CA bundle."""
|
|
+ return '/etc/pki/tls/certs/ca-bundle.crt'
|
|
if __name__ == '__main__':
|
|
print(where())
|
|
diff --git a/setup.py b/setup.py
|
|
index ce5e5c8..de86a91 100755
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -46,7 +46,6 @@ requires = [
|
|
'idna>=2.5,<3; python_version < "3"',
|
|
'idna>=2.5,<4; python_version >= "3"',
|
|
'urllib3>=1.21.1,<1.27',
|
|
- 'certifi>=2017.4.17'
|
|
|
|
]
|
|
test_requirements = [
|
|
--
|
|
2.27.0
|