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

Miss Islington (bot) webhook-mailer at python.org
Sat Mar 3 16:23:36 EST 2018


https://github.com/python/cpython/commit/bd92cfe632228ea4d6a1c0dc9506baa18d353dc1
commit: bd92cfe632228ea4d6a1c0dc9506baa18d353dc1
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-03-03T13:23:31-08:00
summary:

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

(cherry picked from commit 13cfd57dcf58485d6242fd8118c6ea4b10e29aab)

Co-authored-by: Joongi Kim <me at daybreaker.info>

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

diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index cc8fffb0659f..5b801aaf8ecc 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -630,7 +630,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