Commit Graph
8 Commits
Author SHA1 Message Date
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 5baf0cd4f8 fixed PY-12500 Instance attribute defined outside init: generate python 3 super call without arguments for python 3 interpreters 2014-04-09 15:54:53 +04:00
Ekaterina Tuzova ddda8c9cef add field after super call 2014-01-15 18:32:25 +04:00
Ekaterina Tuzova 14f55f9984 PY-10988 Instance attribute defined outside __init__ with property setter 2013-10-04 20:26:00 +04:00
Ekaterina Tuzova 92415cade1 fixed PY-9263 Move attribute to init method: add super class call when moving to not yet existing init 2013-09-09 15:46:27 +04:00
Ekaterina Tuzova 097ed48b0a fixed PY-9263 Move attribute to init method: add super class call when moving to not yet existing init
reused AddFieldQuickFix logic
2013-03-25 15:58:12 +04:00
Ekaterina Tuzova 9750faf20d fixed PY-9253 Broken "add field to class" adds the field to the instance instead.
moved tests to the separate testCase
2013-03-22 18:13:13 +04:00
Ekaterina Tuzova 51ca2375f2 added quick fix for the PyAttributeOutsideInitInspection 2013-03-21 17:12:12 +04:00