From: Kevin Date: Sun, 10 May 2020 21:02:21 +0000 (-0400) Subject: Fix macro params being marked to load X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5bcac08bde582584e53327fe107a125655a4843;p=thirdparty%2Fjinja.git Fix macro params being marked to load These are being used as variables within the macro itself so these should be marked as parameters so they do not escape the scope of the block. --- diff --git a/new_parser.py b/new_parser.py index b61b3d71..bb35c989 100644 --- a/new_parser.py +++ b/new_parser.py @@ -187,7 +187,7 @@ def parse_block_macro(ast): for kwarg in definition.kwargs: params.append( - nodes.Name(kwarg.key, "load") + nodes.Name(kwarg.key, "param") ) defaults.append(kwarg.value)