Fix regression in template language caused by commit bde8cd5: expression lists. The commit broke the arguments(), globals(), and set_globals() functions.

This commit is contained in:
Charles Haley 2021-03-10 01:04:51 +00:00
parent 2eb5af2f8c
commit 808f0bfd7a

View File

@ -616,7 +616,8 @@ class _Parser(object):
return AssignNode(arguments[0].name, arguments[1])
if id_ == 'arguments' or id_ == 'globals' or id_ == 'set_globals':
new_args = []
for arg in arguments:
for arg_list in arguments:
arg = arg_list[0]
if arg.node_type not in (Node.NODE_ASSIGN, Node.NODE_RVALUE):
self.error(_("Parameters to '{}' must be "
"variables or assignments").format(id_))