fixed PY-5525 Move statement: loses code on moving one-line comment up to function with nested indent

This commit is contained in:
Ekaterina Tuzova
2012-03-14 12:04:11 +04:00
parent b8a11d4769
commit b4a41273d7
5 changed files with 38 additions and 12 deletions
+6
View File
@@ -0,0 +1,6 @@
def f():
if True:
a = 1
else:
a = 2
#comment<caret>
@@ -0,0 +1,7 @@
def f():
if True:
a = 1
else:
a = 2
#comment
@@ -0,0 +1,6 @@
#comment
def f():
if True:
a = 1
else:
a = 2