Files
openide/python/testData/refactoring/extractmethod/MethodInIf.after.py
Mikhail Golubev 45cc683033 PY-10829 Extracted function is inserted *after* the function where it is used
I updated test data accordingly and removed now obsolete tests about
skipping preceding comments.
2015-04-02 20:08:32 +03:00

10 lines
178 B
Python

class C:
def foo(self, option, arg):
if option:
self.baz(arg)
def baz(self, arg_new):
self.bar(arg_new)
def bar(self, arg):
pass