mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-20 07:37:06 +08:00
Don't reuse a variable
This commit is contained in:
1 parent
102f83ea85
commit
9d55194b92
1 file changed
+2
-2
@@ -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