mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 13:20:56 +07:00
* `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.
22 lines
256 B
Python
22 lines
256 B
Python
class Parent(object):
|
|
C = 12
|
|
|
|
def __init__(self):
|
|
self.foo = 12
|
|
|
|
def foo(self):
|
|
pass
|
|
|
|
|
|
class Child(Parent, object):
|
|
def __init__(self):
|
|
pass
|
|
|
|
AC = 11
|
|
|
|
def foo(self):
|
|
pass
|
|
|
|
|
|
class Bar(object):
|
|
pass |