From c5bcac08bde582584e53327fe107a125655a4843 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 10 May 2020 17:02:21 -0400 Subject: [PATCH] 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. --- new_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3