From 517717958d1c2ee20243e495a16c3c6501213ef4 Mon Sep 17 00:00:00 2001 From: geekerzp Date: Fri, 10 Jul 2015 12:10:58 +0800 Subject: [PATCH] Update doc string of RESTClientObject#agent method of python client --- .../swagger-codegen/src/main/resources/python/rest.mustache | 3 ++- samples/client/petstore/python/swagger_client/rest.py | 3 ++- 2 files changed, 4 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 5d8a47c220..fcefdac0a7 100644 --- a/modules/swagger-codegen/src/main/resources/python/rest.mustache +++ b/modules/swagger-codegen/src/main/resources/python/rest.mustache @@ -69,7 +69,8 @@ class RESTClientObject(object): def agent(self, url): """ - Return proper pool manager for the http\https schemes. + Use `urllib3.util.parse_url` for backward compatibility. + Return proper pool manager for the http/https schemes. """ url = urllib3.util.parse_url(url) scheme = url.scheme diff --git a/samples/client/petstore/python/swagger_client/rest.py b/samples/client/petstore/python/swagger_client/rest.py index 3b18618100..50c41fc4e0 100644 --- a/samples/client/petstore/python/swagger_client/rest.py +++ b/samples/client/petstore/python/swagger_client/rest.py @@ -69,7 +69,8 @@ class RESTClientObject(object): def agent(self, url): """ - Return proper pool manager for the http\https schemes. + Use `urllib3.util.parse_url` for backward compatibility. + Return proper pool manager for the http/https schemes. """ url = urllib3.util.parse_url(url) scheme = url.scheme