[Python-checkins] Fix missing coroutine declaration in the asyncio documentation. (#5964)

Andrew Svetlov webhook-mailer at python.org
Sat Mar 3 11:43:58 EST 2018


https://github.com/python/cpython/commit/13cfd57dcf58485d6242fd8118c6ea4b10e29aab
commit: 13cfd57dcf58485d6242fd8118c6ea4b10e29aab
branch: master
author: Joongi Kim <me at daybreaker.info>
committer: Andrew Svetlov <andrew.svetlov at gmail.com>
date: 2018-03-03T18:43:54+02:00
summary:

Fix missing coroutine declaration in the asyncio documentation. (#5964)

files:
M Doc/library/asyncio-task.rst

diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 71dbe06c899f..485e1b843d08 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -682,7 +682,7 @@ Task functions
 
    This function is a :ref:`coroutine <coroutine>`.
 
-.. function:: shield(arg, \*, loop=None)
+.. coroutinefunction:: shield(arg, \*, loop=None)
 
    Wait for a future, shielding it from cancellation.
 



More information about the Python-checkins mailing list