aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/requests/py3/patches/02-hack-for-gevent.patch
diff options
context:
space:
mode:
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)