mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-6482 Move statement: ineffective move down to else statement in try/except/else
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
|
||||
try:
|
||||
print(zoo(1).foo(2))
|
||||
except:
|
||||
print<caret>(zoo(0).foo(2)) # <- move statement up here
|
||||
else:
|
||||
a = 1
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
try:
|
||||
print(zoo(1).foo(2))
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
print<caret>(zoo(0).foo(2)) # <- move statement up here
|
||||
a = 1
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
try:
|
||||
print(zoo(1).foo(2))
|
||||
print<caret>(zoo(0).foo(2)) # <- move statement up here
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
a = 1
|
||||
Reference in New Issue
Block a user