changeset: 96438:1dc232783012 branch: 3.5 parent: 96435:5bc396eb4e56 parent: 96437:0708aabefb55 user: Yury Selivanov date: Sun May 31 21:37:23 2015 -0400 description: Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines diff -r 5bc396eb4e56 -r 1dc232783012 Lib/asyncio/coroutines.py --- a/Lib/asyncio/coroutines.py Sun May 31 16:39:46 2015 -0700 +++ b/Lib/asyncio/coroutines.py Sun May 31 21:37:23 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