[Python] [Bug] Correct typo in the word datetime (#4304)

This commit is contained in:
Arun
2019-10-29 20:24:05 +05:30
committed by William Cheng
parent ae798d9433
commit c8465c40ff
5 changed files with 10 additions and 10 deletions

View File

@@ -287,7 +287,7 @@ class ApiClient(object):
elif klass == datetime.date:
return self.__deserialize_date(data)
elif klass == datetime.datetime:
return self.__deserialize_datatime(data)
return self.__deserialize_datetime(data)
else:
return self.__deserialize_model(data, klass)
@@ -587,7 +587,7 @@ class ApiClient(object):
reason="Failed to parse `{0}` as date object".format(string)
)
def __deserialize_datatime(self, string):
def __deserialize_datetime(self, string):
"""Deserializes string to datetime.
The string should be in iso8601 datetime format.