commit | 70adad2a0e7bfb2fbe70027acfb85230dc790b0b | [log] [tgz] |
---|---|---|
author | Yury Selivanov <yselivanov@sprymix.com> | Sun May 31 21:37:09 2015 -0400 |
committer | Yury Selivanov <yselivanov@sprymix.com> | Sun May 31 21:37:09 2015 -0400 |
tree | b105cfed2d21b4ec91b7b3511e928e47726e2e63 | |
parent | a316085192382e56c8322da395231e24c6dbdc5b [diff] |
Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines
diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py index 4933cf8..edb6806 100644 --- a/Lib/asyncio/coroutines.py +++ b/Lib/asyncio/coroutines.py
@@ -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