]> granicus.if.org Git - python/commitdiff
Fix docs markup for asyncio current_task() and all_tasks() (GH-6089)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 12 Mar 2018 19:12:05 +0000 (12:12 -0700)
committerGitHub <noreply@github.com>
Mon, 12 Mar 2018 19:12:05 +0000 (12:12 -0700)
(cherry picked from commit b21505e7109bafe75d87ab63d524b4e749157dbd)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Doc/library/asyncio-task.rst

index 485e1b843d082d8d41b512b00335fae6078b0897..364323d5ca8b65bf9c01843114088de97ba5cb09 100644 (file)
@@ -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.