Commit 118c61fa authored by Stefan Behnel's avatar Stefan Behnel

fix for normal assignments to a non-sequence LHS

parent c099b42b
......@@ -928,7 +928,7 @@ def flatten_parallel_assignments(input, output):
if not lhs.is_sequence_constructor:
if lhs.is_starred:
error(lhs.pos, "starred assignment target must be in a list or tuple")
output.append(lhs)
output.append([lhs,rhs])
continue
lhs_size = len(lhs.args)
starred_targets = sum([1 for expr in lhs.args if expr.is_starred])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment