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