Files
openide/python/testData/refactoring/extractmethod/TryContext.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
162 B
Python

def foo(f):
x = 1
x = bar(f, x)
return x
def bar(f_new, x_new):
try:
x_new = f_new()
except Exception:
pass
return x_new