From 8874342cf332c3aa3d845155cc4b41b00c2d9e9d Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Mon, 11 Dec 2017 17:35:49 +0200 Subject: bpo-32258: Replace 'yield from' to 'await' in asyncio docs (#4779) * Replace 'yield from' to 'await' in asyncio docs * Fix docstrings --- Lib/asyncio/coroutines.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Lib/asyncio/coroutines.py') diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py index d7e6b4c1cc..bca7fe3a53 100644 --- a/Lib/asyncio/coroutines.py +++ b/Lib/asyncio/coroutines.py @@ -19,8 +19,9 @@ def _is_debug_mode(): # If you set _DEBUG to true, @coroutine will wrap the resulting # generator objects in a CoroWrapper instance (defined below). That # instance will log a message when the generator is never iterated - # over, which may happen when you forget to use "yield from" with a - # coroutine call. Note that the value of the _DEBUG flag is taken + # over, which may happen when you forget to use "await" or "yield from" + # with a coroutine call. + # Note that the value of the _DEBUG flag is taken # when the decorator is used, so to be of any use it must be set # before you define your coroutines. A downside of using this feature # is that tracebacks show entries for the CoroWrapper.__next__ method -- cgit v1.2.1