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