1 Star 0 Fork 30

gaoch_100/python-requests

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
patch-requests-certs.py-to-use-the-system-CA-bundle.patch 839 Bytes
一键复制 编辑 原始数据 按行查看 历史
orange-snn 提交于 2019-12-28 09:22 +08:00 . init
diff -uNrp a/requests/certs.py b/requests/certs.py
--- a/requests/certs.py 2019-12-20 15:17:38.304000000 +0800
+++ b/requests/certs.py 2019-12-20 15:25:18.952000000 +0800
@@ -11,7 +11,10 @@ If you are packaging Requests, e.g., for
environment, you can change the definition of where() to return a separately
packaged CA bundle.
"""
-from certifi import where
+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 -uNrp a/setup.py b/setup.py
--- a/setup.py 2019-12-20 15:17:38.304000000 +0800
+++ b/setup.py 2019-12-20 15:14:39.212000000 +0800
@@ -45,7 +45,6 @@ requires = [
'chardet>=3.0.2,<3.1.0',
'idna>=2.5,<2.9',
'urllib3>=1.21.1,<1.25',
- 'certifi>=2017.4.17'
]
test_requirements = [
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gaoch_100/python-requests.git
git@gitee.com:gaoch_100/python-requests.git
gaoch_100
python-requests
python-requests
master

搜索帮助