Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines

This commit is contained in:
Yury Selivanov 2015-05-31 21:37:23 -04:00
commit 6a0fab92f9
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class CoroWrapper:
__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