Merge pull request #2475 from greyli/patch-4

Fix typo in comment
This commit is contained in:
David Lord 2017-09-28 11:00:48 -07:00 committed by GitHub
commit 7e4e6eced3

View file

@ -383,7 +383,7 @@ def flash(message, category='message'):
# session.setdefault('_flashes', []).append((category, message)) # session.setdefault('_flashes', []).append((category, message))
# #
# This assumed that changes made to mutable structures in the session are # This assumed that changes made to mutable structures in the session are
# are always in sync with the session object, which is not true for session # always in sync with the session object, which is not true for session
# implementations that use external storage for keeping their keys/values. # implementations that use external storage for keeping their keys/values.
flashes = session.get('_flashes', []) flashes = session.get('_flashes', [])
flashes.append((category, message)) flashes.append((category, message))