Skip to content

Commit 84d56ec

Browse files
miss-islingtonakulakov
authored andcommitted
bpo-42038: fix description of returned list of lines (GH-27529) (GH-28428)
(cherry picked from commit aca0e08) Co-authored-by: andrei kulakov <[email protected]>
1 parent 0a94253 commit 84d56ec

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/library/tracemalloc.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -740,12 +740,12 @@ Traceback
740740

741741
.. method:: format(limit=None, most_recent_first=False)
742742

743-
Format the traceback as a list of lines with newlines. Use the
744-
:mod:`linecache` module to retrieve lines from the source code.
745-
If *limit* is set, format the *limit* most recent frames if *limit*
746-
is positive. Otherwise, format the ``abs(limit)`` oldest frames.
747-
If *most_recent_first* is ``True``, the order of the formatted frames
748-
is reversed, returning the most recent frame first instead of last.
743+
Format the traceback as a list of lines. Use the :mod:`linecache` module to
744+
retrieve lines from the source code. If *limit* is set, format the *limit*
745+
most recent frames if *limit* is positive. Otherwise, format the
746+
``abs(limit)`` oldest frames. If *most_recent_first* is ``True``, the order
747+
of the formatted frames is reversed, returning the most recent frame first
748+
instead of last.
749749

750750
Similar to the :func:`traceback.format_tb` function, except that
751751
:meth:`.format` does not include newlines.

0 commit comments

Comments
 (0)