From 8387a3538f1abb07dd2f1ec6b6671f983c1a25f5 Mon Sep 17 00:00:00 2001 From: Anthony Baxter Date: Thu, 18 Apr 2002 04:52:10 +0000 Subject: [PATCH] backport tim_one's 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 5bb00c19758c..1e94f59da31e 100644 --- a/Lib/warnings.py +++ b/Lib/warnings.py @@ -130,7 +130,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): -- 2.47.3