Skip to content

Commit 2466cec

Browse files
committed
Correct error in warnings module docs.
1 parent e054a57 commit 2466cec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/warnings.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,8 @@ depending on the value of the flag. When *record* is true and the flag is
661661
false, the context manager works by replacing and then later restoring the
662662
module's :func:`showwarning` function. That is not concurrent-safe.
663663

664-
When *record* is true and the flag is false, the :func:`showwarning` function
665-
is not replaced. The recording status is instead indicated by an internal
664+
When *record* is true and the flag is true, the :func:`showwarning` function
665+
is not replaced. Instead, the recording status is indicated by an internal
666666
property in the context variable. In this case, the :func:`showwarning`
667667
function will not be restored when exiting the context handler.
668668

0 commit comments

Comments
 (0)