mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-11654 Move Statement: IOE at com.intellij.openapi.editor.impl.DocumentImpl.d
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
if value is not None:
|
||||
if not False or value <= 2:
|
||||
print "h<caret>ere"
|
||||
print "h<caret>ere"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if value is not None:
|
||||
print "here"
|
||||
if not False or value <= 2:
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
for item in range(1,
|
||||
3):
|
||||
b = 2<caret>
|
||||
b = 2<caret>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
b = 2<caret>
|
||||
for item in range(1,
|
||||
3):
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
if True:
|
||||
<caret><selection> a = 2
|
||||
b = 3</selection>
|
||||
b = 3</selection>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<caret><selection>a = 2
|
||||
b = 3</selection>
|
||||
if True:
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -4,4 +4,4 @@ def test(a, b=1):
|
||||
else:
|
||||
for n in range(10):
|
||||
|
||||
<caret> print(b)
|
||||
<caret> print(b)
|
||||
|
||||
@@ -3,4 +3,4 @@ if condition:
|
||||
elif other_condition:
|
||||
if another_one:
|
||||
if T<caret>rue: a = 1 # <- move statement up here
|
||||
else: b = 2
|
||||
else: b = 2
|
||||
|
||||
@@ -4,4 +4,4 @@ elif other_condition:
|
||||
if T<caret>rue: a = 1 # <- move statement up here
|
||||
else: b = 2
|
||||
if another_one:
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -4,4 +4,4 @@ try:
|
||||
except:
|
||||
print(zoo(0).foo(2))
|
||||
except:
|
||||
zoo<caret>(3)
|
||||
zoo<caret>(3)
|
||||
|
||||
@@ -5,4 +5,4 @@ try:
|
||||
print(zoo(0).foo(2))
|
||||
zoo(3)
|
||||
except:
|
||||
pass
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user