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
26f526b
index 268e7dcc..45b2c679 100644
26f526b
--- a/requests/__init__.py
26f526b
+++ b/requests/__init__.py
26f526b
@@ -79,13 +79,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()
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