diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-01 01:37:23 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-01 01:37:23 (GMT) |
commit | 6a0fab92f96afcdbf62c0fb5f80f5b420e43cc49 (patch) | |
tree | 32fba417635d10e874de721d67da8a396e3d866a | |
parent | 773490099f243d91c0280b64462f1f9df4783392 (diff) | |
parent | 70adad2a0e7bfb2fbe70027acfb85230dc790b0b (diff) | |
download | cpython-6a0fab92f96afcdbf62c0fb5f80f5b420e43cc49.zip cpython-6a0fab92f96afcdbf62c0fb5f80f5b420e43cc49.tar.gz cpython-6a0fab92f96afcdbf62c0fb5f80f5b420e43cc49.tar.bz2 |
Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines
-rw-r--r-- | Lib/asyncio/coroutines.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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 |