aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/requests/py3/patches/02-hack-for-gevent.patch
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2025-02-06 20:34:10 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2025-02-06 21:15:01 +0300
commit3803ee3560f8ccaadef4d95facbc4ef37ee69682 (patch)
tree8b4aa0864c16e0f5c764850309796cd08e4e075b /contrib/python/requests/py3/patches/02-hack-for-gevent.patch
parent586adedacf8519ba3401e4416d07a6042c050ff1 (diff)
downloadydb-3803ee3560f8ccaadef4d95facbc4ef37ee69682.tar.gz
Intermediate changes
commit_hash:24c62f23164ce9c621538d8c097b568a8a9d89fc
Diffstat (limited to 'contrib/python/requests/py3/patches/02-hack-for-gevent.patch')
-rw-r--r--contrib/python/requests/py3/patches/02-hack-for-gevent.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/python/requests/py3/patches/02-hack-for-gevent.patch b/contrib/python/requests/py3/patches/02-hack-for-gevent.patch
new file mode 100644
index 0000000000..b7eea5be8b
--- /dev/null
+++ b/contrib/python/requests/py3/patches/02-hack-for-gevent.patch
@@ -0,0 +1,12 @@
+--- contrib/python/requests/py3/requests/adapters.py (index)
++++ contrib/python/requests/py3/requests/adapters.py (working tree)
+@@ -76,7 +76,8 @@ DEFAULT_POOL_TIMEOUT = None
+
+ try:
+ import ssl # noqa: F401
+-
++ import urllib3.util.ssl_
++ urllib3.util.ssl_.SSLContext = ssl.SSLContext
+ _preloaded_ssl_context = create_urllib3_context()
+ _preloaded_ssl_context.load_verify_locations(
+ extract_zipped_paths(DEFAULT_CA_BUNDLE_PATH)