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

This commit is contained in:
Ekaterina Tuzova
2012-03-22 14:44:10 +04:00
parent e3aa6844dc
commit 7e1917023d
5 changed files with 44 additions and 7 deletions
+7
View File
@@ -0,0 +1,7 @@
try:
try:
print(zoo(1).foo(2))
except:
print(zoo(0).foo(2))
except:
zoo<caret>(3)
@@ -0,0 +1,7 @@
try:
try:
print(zoo(1).foo(2))
except:
print(zoo(0).foo(2))
except:
zoo<caret>(3)
@@ -0,0 +1,8 @@
try:
try:
print(zoo(1).foo(2))
except:
print(zoo(0).foo(2))
zoo(3)
except:
pass