summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2018-03-12 18:50:50 (GMT)
committerGitHub <noreply@github.com>2018-03-12 18:50:50 (GMT)
commitb21505e7109bafe75d87ab63d524b4e749157dbd (patch)
tree275da8c868ead68bde7e65a426623f3701f55db7
parent095ee415cee41bf24c3a1108c23307e5baf168dd (diff)
downloadcpython-b21505e7109bafe75d87ab63d524b4e749157dbd.zip
cpython-b21505e7109bafe75d87ab63d524b4e749157dbd.tar.gz
cpython-b21505e7109bafe75d87ab63d524b4e749157dbd.tar.bz2
Fix docs markup for asyncio current_task() and all_tasks() (#6089)
-rw-r--r--Doc/library/asyncio-task.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 485e1b8..364323d 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -535,7 +535,7 @@ Task functions
not provided, the default event loop is used.
-.. function:: current_task(loop=None):
+.. function:: current_task(loop=None)
Return the current running :class:`Task` instance or ``None``, if
no task is running.
@@ -546,7 +546,7 @@ Task functions
.. versionadded:: 3.7
-.. function:: all_tasks(loop=None):
+.. function:: all_tasks(loop=None)
Return a set of :class:`Task` objects created for the loop.