mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines
This commit is contained in:
parent
a316085192
commit
70adad2a0e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue