forked from loafle/openapi-generator-original
Also for Python 3
This commit is contained in:
parent
7354d6722f
commit
55cf01d9f7
@ -159,6 +159,8 @@ class ApiClient:
|
||||
value = attrType(value)
|
||||
except UnicodeEncodeError:
|
||||
value = unicode(value)
|
||||
except TypeError:
|
||||
value = value
|
||||
setattr(instance, attr, value)
|
||||
elif (attrType == 'datetime'):
|
||||
setattr(instance, attr, datetime.datetime.strptime(value[:-5],
|
||||
|
Loading…
x
Reference in New Issue
Block a user