forked from loafle/openapi-generator-original
revert previous: no special handling for '' in python3 parseDatetime
This commit is contained in:
parent
42ad403e5e
commit
711d2c8cf4
@ -139,7 +139,7 @@ class ApiClient:
|
|||||||
r'^\d\d\d\d-\d\d-\d\d([Tt])\d\d:\d\d:\d\d(\.\d+)?(([Zz])|(\+|-)\d\d:?\d\d)$')
|
r'^\d\d\d\d-\d\d-\d\d([Tt])\d\d:\d\d:\d\d(\.\d+)?(([Zz])|(\+|-)\d\d:?\d\d)$')
|
||||||
|
|
||||||
def _parseDatetime(self, d):
|
def _parseDatetime(self, d):
|
||||||
if not d:
|
if d is None:
|
||||||
return None
|
return None
|
||||||
m = ApiClient._iso8601Regex.match(d)
|
m = ApiClient._iso8601Regex.match(d)
|
||||||
timesep, microsecond, offset, zulu, plusminus = m.groups()
|
timesep, microsecond, offset, zulu, plusminus = m.groups()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user