]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-97725: Fix documentation for the default file of `asyncio.Task.print_stack...
authorOleg Iarygin <oleg@arhadthedev.net>
Wed, 8 Feb 2023 10:02:54 +0000 (14:02 +0400)
committerGitHub <noreply@github.com>
Wed, 8 Feb 2023 10:02:54 +0000 (11:02 +0100)
(cherry picked from commit f87f6e23964d7a4c38b655089cda65538a24ec36)

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 5608022c9afdbb6642cd479b7b5c80faf31da575..d7e13ea3c6fe69ec0d31ae852b377bb5bfdace10 100644 (file)
@@ -1002,7 +1002,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.