This commit is contained in:
Kovid Goyal 2021-03-10 08:11:22 +05:30
commit f679aad9a3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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