[Python-checkins] cpython (merge 3.5 -> default): Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines
yury.selivanov
python-checkins at python.org
Mon Jun 1 03:37:42 CEST 2015
https://hg.python.org/cpython/rev/2e7c45560c38
changeset: 96439:2e7c45560c38
parent: 96436:1cc6cff1892c
parent: 96438:1dc232783012
user: Yury Selivanov <yselivanov at sprymix.com>
date: Sun May 31 21:37:36 2015 -0400
summary:
Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines
files:
Lib/asyncio/coroutines.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py
--- 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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list