Skip to content

Commit 1d8e23f

Browse files
Update Doc/library/warnings.rst
Co-authored-by: Stan Ulbrych <[email protected]>
1 parent 0d52a92 commit 1d8e23f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/warnings.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,9 @@ Available Context Managers
595595
A context manager that copies and, upon exit, restores the warnings filter
596596
and the :func:`showwarning` function.
597597
If the *record* argument is :const:`False` (the default) the context manager
598-
returns :class:`None` on entry. If *record* is :const:`True`, a list is
599-
returned that is progressively populated with objects as seen by a custom
598+
returns :class:`None` on entry. If *record* is :const:`True`, the default
599+
warning stream is intercepted and a list is returned that is progressively
600+
populated with objects as seen by a custom
600601
:func:`showwarning` function (which also suppresses output to ``sys.stderr`` and other streams).
601602
Each object in the list has attributes with the same names as the arguments to
602603
:func:`showwarning`.

0 commit comments

Comments
 (0)