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

11 lines
196 B
Python

def f(xs):
found = False
found = yield from bar(found, xs)
print(found)
def bar(found_new, xs_new):
for x in xs_new:
yield x
found_new = True
return found_new