changeset: 96439:2e7c45560c38 parent: 96436:1cc6cff1892c parent: 96438:1dc232783012 user: Yury Selivanov date: Sun May 31 21:37:36 2015 -0400 description: Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines diff -r 1cc6cff1892c -r 2e7c45560c38 Lib/asyncio/coroutines.py --- a/Lib/asyncio/coroutines.py Sun May 31 16:40:12 2015 -0700 +++ b/Lib/asyncio/coroutines.py Sun May 31 21:37:36 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