Files
openide/python/testData/refactoring/extractmethod/DuplicateCheckParam.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

12 lines
165 B
Python

def f():
a = do_smth()
b1 = foo(a)
a = do_smth()
b = foo(a + 1)
do_smth_with(b1, b)
def foo(a_new):
b1 = do_smth_with(a_new)
return b1