gh-97725: Fix documentation for the default file of asyncio.Task.print_stack (#101652)

This commit is contained in:
Oleg Iarygin 2023-02-07 22:04:31 +04:00 committed by GitHub
parent 6fd5eb640a
commit f87f6e2396
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View 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()

View file

@ -0,0 +1,2 @@
Fix :meth:`asyncio.Task.print_stack` description for ``file=None``.
Patch by Oleg Iarygin.