Blame SOURCES/Don-t-inject-pyopenssl-into-urllib3.patch

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