]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-97725: Fix documentation for the default file of `asyncio.Task.print_stack...
authorOleg Iarygin <oleg@arhadthedev.net>
Wed, 8 Feb 2023 10:02:37 +0000 (14:02 +0400)
committerGitHub <noreply@github.com>
Wed, 8 Feb 2023 10:02:37 +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 1fd7afad99a8303c674513ac79b39b17dcb7d963..ade5293e7f075ebf2f0a7ae8b71849f661101f19 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.