Don't reuse a variable

This commit is contained in:
Dave Halter
2020-04-11 01:40:41 +02:00
parent 102f83ea85
commit 9d55194b92

View File

@@ -186,8 +186,8 @@ def _remove_unwanted_expression_nodes(parent_node, pos, until_pos):
end_index += 1 end_index += 1
# Something like `not foo or bar` should not be cut after not # Something like `not foo or bar` should not be cut after not
for n in nodes[i:]: for n2 in nodes[i:]:
if _is_not_extractable_syntax(n): if _is_not_extractable_syntax(n2):
end_index += 1 end_index += 1
else: else:
break break