From b42ead3c0f4d533bb08cb8e9448189c68af3ce1c Mon Sep 17 00:00:00 2001 From: geekerzp Date: Fri, 10 Jul 2015 11:29:42 +0800 Subject: [PATCH] Replace `urllib3.util.url.parse_url` with `urllib3.util.parse_url` --- modules/swagger-codegen/src/main/resources/python/rest.mustache | 2 +- samples/client/petstore/python/swagger_client/rest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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