[fix] Bad comment

This commit is contained in:
ljf (zamentur) 2018-06-09 11:41:26 +02:00 committed by GitHub
parent cf07c34fe3
commit c83d582313
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ class JSONExtendedEncoder(JSONEncoder):
hasattr(o, '__iter__') and hasattr(o, 'next')): hasattr(o, '__iter__') and hasattr(o, 'next')):
return list(o) return list(o)
# Convert compatible containers into list # Display the date in its iso format ISO-8601 Internet Profile (RFC 3339)
if isinstance(o, datetime.datetime) or isinstance(o, datetime.date): if isinstance(o, datetime.datetime) or isinstance(o, datetime.date):
return o.isoformat() return o.isoformat()