Commit Graph

11 Commits

Author SHA1 Message Date
Mikhail Golubev
e6ec37ccfe PY-19705 Add blanks lines around methods of a class as required by PEP 8 2017-07-28 15:23:31 +03:00
Mikhail Golubev
c881af1428 PyUtil#removeQualifier handles possible whitespace before the dot 2015-10-05 16:00:35 +03:00
Ekaterina Tuzova
b0384b7f67 fixed PY-15437 Exception when converting method to function 2015-04-23 15:33:33 +03:00
Mikhail Golubev
31eeb5e84a 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.
2015-04-08 13:46:26 +03:00
Ekaterina Tuzova
33a3ecf730 PY-9365 Make function from method: leads to unresolved attribute reference for method usages in class 2013-10-10 18:25:33 +04:00
Ekaterina Tuzova
6e563e5380 fixed PY-9365 Make function from method: leads to unresolved attribute reference for method usages in class 2013-09-23 20:56:32 +04:00
Ekaterina Tuzova
2afdd5cefb fixed PY-9656 Make function from method: update import statements 2013-05-30 19:34:47 +04:00
Ekaterina Tuzova
b2a2abbce5 fixed PY-9654 Make function from method/Make method static: correctly update class calls with first instance argument 2013-05-29 16:00:26 +04:00
Ekaterina Tuzova
bf71eaac4c update usages after converting method to function 2013-04-25 13:04:11 +04:00
Ekaterina Tuzova
913e96ea0e fixed PY-9406 Make function from method: when removing last method from class add pass statement 2013-04-09 14:08:09 +04:00
Ekaterina Tuzova
1fa5b3bfd6 added Method may be static or a function (+ quickfix) 2013-03-26 15:48:16 +04:00