diff --git a/modules/swagger-codegen/src/main/resources/python/rest.mustache b/modules/swagger-codegen/src/main/resources/python/rest.mustache index a5290d7225a..5d8a47c2207 100644 --- a/modules/swagger-codegen/src/main/resources/python/rest.mustache +++ b/modules/swagger-codegen/src/main/resources/python/rest.mustache @@ -71,7 +71,7 @@ class RESTClientObject(object): """ 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 if scheme == 'https': return self.ssl_pool_manager diff --git a/samples/client/petstore/python/swagger_client/rest.py b/samples/client/petstore/python/swagger_client/rest.py index 2759e754fd2..3b186181008 100644 --- a/samples/client/petstore/python/swagger_client/rest.py +++ b/samples/client/petstore/python/swagger_client/rest.py @@ -71,7 +71,7 @@ class RESTClientObject(object): """ 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 if scheme == 'https': return self.ssl_pool_manager