Fix test data in several tests that failed after PyUtil#deleteElementSafely was introduces

* `pass` is consistently inserted on the new line now
* excess spaces left after element was deleted are removed

Use PyUtil#deleteElementSafely in pull, push and extract superclass
refactoring implementations.

It turned out that all problems with whitespaces left after we moved
function are rooted in awkward implementation of PyFunctionImpl#delete()
that delegated to plain AST manipulation and thus ignored
usual additional reformatting step. I removed it and it's allowed to
clean a lot of test files and remove the code that was added previously
exactly for this purpose in PyMoveSymbolProcessor.
This commit is contained in:
Mikhail Golubev
2015-04-07 22:49:19 +03:00
parent 64807a9f8b
commit 31eeb5e84a
31 changed files with 23 additions and 68 deletions

View File

@@ -10,4 +10,4 @@ class A:
self.b = 1
def foo(self):
pass
pass