]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport tim_one's patch:
authorAnthony Baxter <anthonybaxter@gmail.com>
Thu, 18 Apr 2002 04:52:10 +0000 (04:52 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Thu, 18 Apr 2002 04:52:10 +0000 (04:52 +0000)
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

index 5bb00c19758cf846f9e15fa98dd8c79ea4155b13..1e94f59da31e0d7d6bd00282dd2d6ff4d2a71371 100644 (file)
@@ -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):