From: Andrew Svetlov Date: Mon, 12 Mar 2018 18:50:50 +0000 (+0200) Subject: Fix docs markup for asyncio current_task() and all_tasks() (#6089) X-Git-Tag: v3.8.0a1~2092 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b21505e7109bafe75d87ab63d524b4e749157dbd;p=python Fix docs markup for asyncio current_task() and all_tasks() (#6089) --- diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 485e1b843d..364323d5ca 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.