Skip to content

Commit

Permalink
Changes comments about Flask 1.0 to Flask 0.11.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinkels committed Jun 5, 2016
1 parent d605996 commit e57da3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flask_restless/serialization/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def _dump(self, instance, only=None):
# Serialize any date- or time-like objects that appear in the
# attributes.
#
# TODO In Flask 1.0, the default JSON encoder for the Flask
# TODO In Flask 0.11, the default JSON encoder for the Flask
# application object does this automatically. Alternately, the
# user could have set a smart JSON encoder on the Flask
# application, which would cause these attributes to be
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ def process_result_value(self, value, dialect):
return uuid.UUID(value)


# In versions of Flask before 1.0, datetime and time objects are not
# In versions of Flask before 0.11, datetime and time objects are not
# serializable by default so we need to create a custom JSON encoder class.
#
# TODO When Flask 1.0 is required, remove this.
# TODO When Flask 0.11 is required, remove this.
class BetterJSONEncoder(JSONEncoder):
"""Extends the default JSON encoder to serialize objects from the
:mod:`datetime` module.
Expand Down

0 comments on commit e57da3f

Please sign in to comment.