From eaedb9320c7aad581daa05f1510b64393c082dbb Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Thu, 19 Apr 2018 14:11:05 +0100 Subject: [PATCH] Fix index example for TaggedJSONSerializer.register() Made the example use a keyword, rather than a positional argument, as the intent here is to show how to insert a tag with higher precedence. As a positional argument, this would have been passed to ``force`` instead of ``index``. --- flask/json/tag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask/json/tag.py b/flask/json/tag.py index 2ff0cc6e..11c966c5 100644 --- a/flask/json/tag.py +++ b/flask/json/tag.py @@ -36,7 +36,7 @@ processes dicts first, so insert the new tag at the front of the order since def to_python(self, value): return OrderedDict(value) - app.session_interface.serializer.register(TagOrderedDict, 0) + app.session_interface.serializer.register(TagOrderedDict, index=0) :copyright: © 2010 by the Pallets team. :license: BSD, see LICENSE for more details.