From c86c1b88f96ec48e5502b9b8ba5cc833f57ce476 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 16 Apr 2002 01:33:59 +0000 Subject: [PATCH] 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. --- Lib/warnings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/warnings.py b/Lib/warnings.py index 7ae98209699..7966a33737c 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):