summaryrefslogtreecommitdiff
path: root/src/urllib3/poolmanager.py
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2020-11-29 04:58:45 +0100
committerGitHub <noreply@github.com>2020-11-28 21:58:45 -0600
commit34dc7703be11d33f51077298d5cf7cadd4f6d66e (patch)
tree72d1142449d52caae16c443fee27b2f861e98a5c /src/urllib3/poolmanager.py
parentcad4850614d86b4db56a785bc9f984eed342f8be (diff)
downloadurllib3-34dc7703be11d33f51077298d5cf7cadd4f6d66e.tar.gz
Remove remaining mentions of Python 2
Diffstat (limited to 'src/urllib3/poolmanager.py')
-rw-r--r--src/urllib3/poolmanager.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/urllib3/poolmanager.py b/src/urllib3/poolmanager.py
index 3f65ea9f..f18367b9 100644
--- a/src/urllib3/poolmanager.py
+++ b/src/urllib3/poolmanager.py
@@ -327,17 +327,6 @@ class PoolManager(RequestMethods):
self.proxy, self.proxy_config, parsed_url.scheme
)
- def _validate_proxy_scheme_url_selection(self, url_scheme):
- """
- Validates that were not attempting to do TLS in TLS connections on
- Python2 or with unsupported SSL implementations.
- """
- if self.proxy is None or url_scheme != "https":
- return
-
- if self.proxy.scheme != "https":
- return
-
def urlopen(self, method, url, redirect=True, **kw):
"""
Same as :meth:`urllib3.HTTPConnectionPool.urlopen`
@@ -348,7 +337,6 @@ class PoolManager(RequestMethods):
:class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.
"""
u = parse_url(url)
- self._validate_proxy_scheme_url_selection(u.scheme)
conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)