mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Don't reuse a variable
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user