fixed PY-5192 Move Statement: breaks code in case moving down to nested try statement

This commit is contained in:
Ekaterina Tuzova
2011-12-15 14:39:01 +04:00
parent 81a21bea69
commit 099e229783
5 changed files with 31 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
try:
try:
print(zoo(1).foo(2))
except:
print<caret>(zoo(0).foo(2)) # <- move statement up here
except:
zoo(3)
@@ -0,0 +1,9 @@
try:
try:
print(zoo(1).foo(2))
except:
pass
print(zoo(0).foo(2)) # <- move statement up here
except:
zoo(3)
@@ -0,0 +1,9 @@
try:
try:
print(zoo(1).foo(2))
print(zoo(0).foo(2)) # <- move statement up here
except:
pass
except:
zoo(3)