Commit 70adad2a authored by Yury Selivanov's avatar Yury Selivanov

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

parent a3160851
......@@ -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
......
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