[Python] update python requirement.txt and use single quote for safe characters (#4702)

* update python requirement

* update petstore sample
This commit is contained in:
wing328 2017-02-03 21:35:40 +08:00 committed by GitHub
parent c366f139e2
commit 5282987851
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
certifi >= 14.05.14 certifi >= 14.05.14
six == 1.8.0 six >= 1.10
python_dateutil >= 2.5.3 python_dateutil >= 2.5.3
setuptools >= 21.0.0 setuptools >= 21.0.0
urllib3 >= 1.15.1 urllib3 >= 1.15.1

View File

@ -116,7 +116,7 @@ class ApiClient(object):
collection_formats) collection_formats)
for k, v in path_params: for k, v in path_params:
resource_path = resource_path.replace( resource_path = resource_path.replace(
'{%s}' % k, quote(str(v), safe="")) '{%s}' % k, quote(str(v), safe='')) # no safe chars, encode everything
# query parameters # query parameters
if query_params: if query_params: