forked from M-Labs/artiq
transforms/remove_inter_assigns: fix bug with array assignment
This commit is contained in:
parent
1e8c9837ac
commit
1c0c0b691e
|
@ -36,6 +36,7 @@ class _InterAssignRemover(ast.NodeTransformer):
|
|||
self.replacements[target.id] = node.value
|
||||
else:
|
||||
for target in node.targets:
|
||||
if isinstance(target, ast.Name):
|
||||
try:
|
||||
del self.replacements[target.id]
|
||||
except KeyError:
|
||||
|
|
Loading…
Reference in New Issue