mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
f679aad9a3
@ -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_))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user