26d489
From 86b1fa39fdebdb7bc57131c1a198d4d18e104f95 Mon Sep 17 00:00:00 2001
26d489
From: Jeremy Cline <jeremy@jcline.org>
26d489
Date: Mon, 16 Apr 2018 10:35:35 -0400
26d489
Subject: [PATCH] Don't inject pyopenssl into urllib3
26d489
26d489
Fedora ships sufficiently new versions of Python 2 and 3 to make this
26d489
unnecessary (rhbz 1567862)
26d489
26d489
Signed-off-by: Jeremy Cline <jeremy@jcline.org>
26d489
---
26d489
 requests/__init__.py | 7 -------
26d489
 1 file changed, 7 deletions(-)
26d489
26d489
diff --git a/requests/__init__.py b/requests/__init__.py
26d489
index a5b3c9c3..e312d314 100644
26d489
--- a/requests/__init__.py
26d489
+++ b/requests/__init__.py
26d489
@@ -90,17 +90,6 @@ except (AssertionError, ValueError):
26d489
                   "version!".format(urllib3.__version__, chardet.__version__),
26d489
                   RequestsDependencyWarning)
26d489
 
26d489
-# Attempt to enable urllib3's SNI support, if possible
26d489
-try:
26d489
-    from urllib3.contrib import pyopenssl
26d489
-    pyopenssl.inject_into_urllib3()
26d489
-
26d489
-    # Check cryptography version
26d489
-    from cryptography import __version__ as cryptography_version
26d489
-    _check_cryptography(cryptography_version)
26d489
-except ImportError:
26d489
-    pass
26d489
-
26d489
 # urllib3's DependencyWarnings should be silenced.
26d489
 from urllib3.exceptions import DependencyWarning
26d489
 warnings.simplefilter('ignore', DependencyWarning)
26d489
-- 
26d489
2.17.0
26d489