forked from M-Labs/artiq
1
0
Fork 0

transforms/remove_inter_assigns: fix bug with array assignment

This commit is contained in:
Sebastien Bourdeauducq 2014-10-29 20:29:37 +08:00
parent 1e8c9837ac
commit 1c0c0b691e
1 changed files with 5 additions and 4 deletions

View File

@ -36,6 +36,7 @@ class _InterAssignRemover(ast.NodeTransformer):
self.replacements[target.id] = node.value self.replacements[target.id] = node.value
else: else:
for target in node.targets: for target in node.targets:
if isinstance(target, ast.Name):
try: try:
del self.replacements[target.id] del self.replacements[target.id]
except KeyError: except KeyError: