forked from loafle/openapi-generator-original
Replace urllib3.util.url.parse_url with urllib3.util.parse_url
This commit is contained in:
@@ -71,7 +71,7 @@ class RESTClientObject(object):
|
|||||||
"""
|
"""
|
||||||
Return proper pool manager for the http\https schemes.
|
Return proper pool manager for the http\https schemes.
|
||||||
"""
|
"""
|
||||||
url = urllib3.util.url.parse_url(url)
|
url = urllib3.util.parse_url(url)
|
||||||
scheme = url.scheme
|
scheme = url.scheme
|
||||||
if scheme == 'https':
|
if scheme == 'https':
|
||||||
return self.ssl_pool_manager
|
return self.ssl_pool_manager
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ class RESTClientObject(object):
|
|||||||
"""
|
"""
|
||||||
Return proper pool manager for the http\https schemes.
|
Return proper pool manager for the http\https schemes.
|
||||||
"""
|
"""
|
||||||
url = urllib3.util.url.parse_url(url)
|
url = urllib3.util.parse_url(url)
|
||||||
scheme = url.scheme
|
scheme = url.scheme
|
||||||
if scheme == 'https':
|
if scheme == 'https':
|
||||||
return self.ssl_pool_manager
|
return self.ssl_pool_manager
|
||||||
|
|||||||
Reference in New Issue
Block a user