]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-97725: Fix documentation for the default file of `asyncio.Task.print_stack` (...
authorOleg Iarygin <oleg@arhadthedev.net>
Tue, 7 Feb 2023 18:04:31 +0000 (22:04 +0400)
committerGitHub <noreply@github.com>
Tue, 7 Feb 2023 18:04:31 +0000 (23:34 +0530)
Doc/library/asyncio-task.rst
Misc/NEWS.d/next/Documentation/2023-02-07-21-43-24.gh-issue-97725.cuY7Cd.rst [new file with mode: 0644]

index 39112580285cc0c6400c42a97079d31e54bc96d7..9b98424328226839649688a59fb3460e6a165086 100644 (file)
@@ -1097,7 +1097,7 @@ Task Object
       The *limit* argument is passed to :meth:`get_stack` directly.
 
       The *file* argument is an I/O stream to which the output
-      is written; by default output is written to :data:`sys.stderr`.
+      is written; by default output is written to :data:`sys.stdout`.
 
    .. method:: get_coro()
 
diff --git a/Misc/NEWS.d/next/Documentation/2023-02-07-21-43-24.gh-issue-97725.cuY7Cd.rst b/Misc/NEWS.d/next/Documentation/2023-02-07-21-43-24.gh-issue-97725.cuY7Cd.rst
new file mode 100644 (file)
index 0000000..fd9ea04
--- /dev/null
@@ -0,0 +1,2 @@
+Fix :meth:`asyncio.Task.print_stack` description for ``file=None``.
+Patch by Oleg Iarygin.