changeset: 96437:0708aabefb55 branch: 3.4 parent: 96410:b7b73029c825 user: Yury Selivanov date: Sun May 31 21:37:09 2015 -0400 files: Lib/asyncio/coroutines.py description: Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines diff -r b7b73029c825 -r 0708aabefb55 Lib/asyncio/coroutines.py --- a/Lib/asyncio/coroutines.py Sat May 30 21:02:12 2015 -0400 +++ b/Lib/asyncio/coroutines.py Sun May 31 21:37:09 2015 -0400 @@ -120,7 +120,7 @@ __await__ = __iter__ # make compatible with 'await' expression def __next__(self): - return next(self.gen) + return self.gen.send(None) if _YIELD_FROM_BUG: # For for CPython issue #21209: using "yield from" and a custom