From: Tim Peters Date: Tue, 16 Apr 2002 01:33:59 +0000 (+0000) Subject: resetwarnings(): change the docstring to reflect what the code X-Git-Tag: v2.3c1~5931 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c86c1b88f96ec48e5502b9b8ba5cc833f57ce476;p=python resetwarnings(): change the docstring to reflect what the code actually does. Note that the description in the Library Reference manual is already accurate. Bugfix candidate. --- diff --git a/Lib/warnings.py b/Lib/warnings.py index 7ae9820969..7966a33737 100644 --- a/Lib/warnings.py +++ b/Lib/warnings.py @@ -139,7 +139,7 @@ def filterwarnings(action, message="", category=Warning, module="", lineno=0, filters.insert(0, item) def resetwarnings(): - """Reset the list of warnings filters to its default state.""" + """Clear the list of warning filters, so that no filters are active.""" filters[:] = [] class _OptionError(Exception):