improved python statement mover

This commit is contained in:
alexey.ivanov
2010-05-07 20:46:38 +04:00
parent b97bee19b1
commit 68b2b14abf
8 changed files with 129 additions and 38 deletions
+12
View File
@@ -0,0 +1,12 @@
class A:
def foo(self, a, b, c, d):
if a:
if b:
if c:
if d:
self.bar()
c<caret> = 3
a = 2
def bar(self):
pass
+12
View File
@@ -0,0 +1,12 @@
class A:
def foo(self, a, b, c, d):
if a:
if b:
if c:
if d:
self.bar()
a = 2
c = 3
def bar(self):
pass
+12
View File
@@ -0,0 +1,12 @@
class A:
def foo(self, a, b, c, d):
if a:
if b:
if c:
if d:
c = 3
self.bar()
a = 2
def bar(self):
pass
+5 -4
View File
@@ -1,6 +1,7 @@
a = 1
def foo():
a = 1
if a:
a <caret>= 3
if a:
a <caret>= 3
a = 4
a = 4
@@ -1,7 +1,8 @@
a = 1
def foo():
a = 1
if a:
pass
if a:
pass
a = 4
a = 3
a = 4
a = 3
@@ -1,7 +1,8 @@
a = 1
def foo():
a = 1
a = 3
if a:
pass
a = 3
if a:
pass
a = 4
a = 4