Commit 23cbe46e authored by Stefan Behnel's avatar Stefan Behnel

merge 0.19.x branch into master

parents 5a0a853b b0a4fa4a
......@@ -9,10 +9,17 @@ see <http://www.cosc.canterbury.ac.nz/greg.ewing/python/yield-from/YieldFrom-Pyt
import sys
try:
_next = next # not in Py<=2.5
except NameError:
def _next(it):
return it.next()
def _lines(trace):
for line in trace:
print(line)
def test_delegation_of_initial_next_to_subgenerator():
"""
>>> _lines(test_delegation_of_initial_next_to_subgenerator())
......@@ -1006,8 +1013,6 @@ def test_delegating_generators_claim_to_be_running_close():
return ret
_next = next # keep it around for Py<=2.5
def yield_in_return(x):
"""
>>> x = yield_in_return(range(3))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment