Update doc string of RESTClientObject#agent method of python client

This commit is contained in:
geekerzp 2015-07-10 12:10:58 +08:00
parent b42ead3c0f
commit 517717958d
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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