fixed PY-5201 Move statement: changes code logic on moving one-line compound statement outside nested one

This commit is contained in:
Ekaterina Tuzova
2011-12-02 15:57:17 +01:00
parent 6004deefb3
commit 1de2fbaba1
5 changed files with 30 additions and 2 deletions
@@ -0,0 +1,6 @@
if condition:
pass
elif other_condition:
if another_one:
if T<caret>rue: a = 1 # <- move statement up here
else: b = 2
@@ -0,0 +1,6 @@
if condition:
pass
elif other_condition:
if another_one:
if T<caret>rue: a = 1 # <- move statement up here
else: b = 2
@@ -0,0 +1,7 @@
if condition:
pass
elif other_condition:
if T<caret>rue: a = 1 # <- move statement up here
else: b = 2
if another_one:
pass