From: Anthony Baxter Date: Thu, 18 Apr 2002 04:52:10 +0000 (+0000) Subject: backport tim_one's patch: X-Git-Tag: v2.2.2b1~435 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8387a3538f1abb07dd2f1ec6b6671f983c1a25f5;p=thirdparty%2FPython%2Fcpython.git 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. --- 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):