From c6bb999c0dc448e98fb8fed7d6913fa070999080 Mon Sep 17 00:00:00 2001 From: andrei kulakov Date: Sun, 1 Aug 2021 13:01:53 -0400 Subject: [PATCH 1/5] fix description of returned list of lines --- Doc/library/tracemalloc.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/tracemalloc.rst b/Doc/library/tracemalloc.rst index 20f668c72820282..d3465f685bcbc75 100644 --- a/Doc/library/tracemalloc.rst +++ b/Doc/library/tracemalloc.rst @@ -740,7 +740,7 @@ Traceback .. method:: format(limit=None, most_recent_first=False) - Format the traceback as a list of lines with newlines. Use the + Format the traceback as a list of lines. Use the :mod:`linecache` module to retrieve lines from the source code. If *limit* is set, format the *limit* most recent frames if *limit* is positive. Otherwise, format the ``abs(limit)`` oldest frames. From 2758a67674a79041497887ee1f7f063a644d534e Mon Sep 17 00:00:00 2001 From: andrei kulakov Date: Sun, 1 Aug 2021 13:03:27 -0400 Subject: [PATCH 2/5] formatting --- Doc/library/tracemalloc.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Doc/library/tracemalloc.rst b/Doc/library/tracemalloc.rst index d3465f685bcbc75..004897e3164d97e 100644 --- a/Doc/library/tracemalloc.rst +++ b/Doc/library/tracemalloc.rst @@ -740,12 +740,12 @@ Traceback .. method:: format(limit=None, most_recent_first=False) - Format the traceback as a list of lines. Use the - :mod:`linecache` module to retrieve lines from the source code. - If *limit* is set, format the *limit* most recent frames if *limit* - is positive. Otherwise, format the ``abs(limit)`` oldest frames. - If *most_recent_first* is ``True``, the order of the formatted frames - is reversed, returning the most recent frame first instead of last. + Format the traceback as a list of lines. Use the :mod:`linecache` module to + retrieve lines from the source code. If *limit* is set, format the *limit* + most recent frames if *limit* is positive. Otherwise, format the + ``abs(limit)`` oldest frames. If *most_recent_first* is ``True``, the order + of the formatted frames is reversed, returning the most recent frame first + instead of last. Similar to the :func:`traceback.format_tb` function, except that :meth:`.format` does not include newlines. From e9e113407515656c6e7467d6e3dbbc67329cdfdc Mon Sep 17 00:00:00 2001 From: andrei kulakov Date: Sun, 1 Aug 2021 13:04:07 -0400 Subject: [PATCH 3/5] undo formatting --- Doc/library/tracemalloc.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Doc/library/tracemalloc.rst b/Doc/library/tracemalloc.rst index 004897e3164d97e..d3465f685bcbc75 100644 --- a/Doc/library/tracemalloc.rst +++ b/Doc/library/tracemalloc.rst @@ -740,12 +740,12 @@ Traceback .. method:: format(limit=None, most_recent_first=False) - Format the traceback as a list of lines. Use the :mod:`linecache` module to - retrieve lines from the source code. If *limit* is set, format the *limit* - most recent frames if *limit* is positive. Otherwise, format the - ``abs(limit)`` oldest frames. If *most_recent_first* is ``True``, the order - of the formatted frames is reversed, returning the most recent frame first - instead of last. + Format the traceback as a list of lines. Use the + :mod:`linecache` module to retrieve lines from the source code. + If *limit* is set, format the *limit* most recent frames if *limit* + is positive. Otherwise, format the ``abs(limit)`` oldest frames. + If *most_recent_first* is ``True``, the order of the formatted frames + is reversed, returning the most recent frame first instead of last. Similar to the :func:`traceback.format_tb` function, except that :meth:`.format` does not include newlines. From f598ff1162bb44673f1215777988018b8e76f79f Mon Sep 17 00:00:00 2001 From: andrei kulakov Date: Wed, 25 Aug 2021 19:00:26 -0400 Subject: [PATCH 4/5] apply formatting --- Doc/library/tracemalloc.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Doc/library/tracemalloc.rst b/Doc/library/tracemalloc.rst index d3465f685bcbc75..5161eef348dba9e 100644 --- a/Doc/library/tracemalloc.rst +++ b/Doc/library/tracemalloc.rst @@ -740,12 +740,12 @@ Traceback .. method:: format(limit=None, most_recent_first=False) - Format the traceback as a list of lines. Use the - :mod:`linecache` module to retrieve lines from the source code. - If *limit* is set, format the *limit* most recent frames if *limit* - is positive. Otherwise, format the ``abs(limit)`` oldest frames. - If *most_recent_first* is ``True``, the order of the formatted frames - is reversed, returning the most recent frame first instead of last. + Format the traceback as a list of lines. Use the :mod:`linecache` module to + retrieve lines from the source code. If *limit* is set, format the *limit* + most recent frames if *limit* is positive. Otherwise, format the + ``abs(limit)`` oldest frames. If *most_recent_first* is ``True``, the order + of the formatted frames is reversed, returning the most recent frame first + instead of last. Similar to the :func:`traceback.format_tb` function, except that :meth:`.format` does not include newlines. From 87a5b4bb3a6eb3ed2cbc1df72707b6de9ac82be9 Mon Sep 17 00:00:00 2001 From: andrei kulakov Date: Wed, 25 Aug 2021 19:02:31 -0400 Subject: [PATCH 5/5] apply formatting --- Doc/library/tracemalloc.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/tracemalloc.rst b/Doc/library/tracemalloc.rst index 5161eef348dba9e..68432aeaecbcc17 100644 --- a/Doc/library/tracemalloc.rst +++ b/Doc/library/tracemalloc.rst @@ -743,7 +743,7 @@ Traceback Format the traceback as a list of lines. Use the :mod:`linecache` module to retrieve lines from the source code. If *limit* is set, format the *limit* most recent frames if *limit* is positive. Otherwise, format the - ``abs(limit)`` oldest frames. If *most_recent_first* is ``True``, the order + ``abs(limit)`` oldest frames. If *most_recent_first* is ``True``, the order of the formatted frames is reversed, returning the most recent frame first instead of last.