File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
modules/swagger-codegen/src/main/resources/python Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ NOTE: This class is auto generated by the swagger code generator program. Do not
19
19
"""
20
20
import sys
21
21
import os
22
+ import urllib
22
23
23
24
from models import *
24
25
@@ -78,6 +79,7 @@ class {{classname}}(object):
78
79
{{#pathParams}}
79
80
if ('{{paramName}}' in params ):
80
81
replacement = str (self .apiClient .toPathValue (params ['{{paramName}}' ]))
82
+ replacement = urllib .quote (replacement )
81
83
resourcePath = resourcePath .replace ('{' + '{{baseName}}' + '}' ,
82
84
replacement )
83
85
{{/ pathParams }}
Original file line number Diff line number Diff line change @@ -103,9 +103,9 @@ class ApiClient(object):
103
103
string -- quoted value
104
104
"""
105
105
if type (obj ) == list :
106
- return urllib . quote ( ',' .join (obj ) )
106
+ return ',' .join (obj )
107
107
else :
108
- return urllib . quote ( str (obj ) )
108
+ return str (obj )
109
109
110
110
@staticmethod
111
111
def sanitizeForSerialization (obj ):
You can’t perform that action at this time.
0 commit comments