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