resetwarnings(): change the docstring to reflect what the code
authorTim Peters <tim.peters@gmail.com>
Tue, 16 Apr 2002 01:33:59 +0000 (01:33 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 16 Apr 2002 01:33:59 +0000 (01:33 +0000)
actually does.  Note that the description in the Library Reference
manual is already accurate.

Bugfix candidate.

Lib/warnings.py

index 7ae98209699f13bcbd83578cef3add8121c8a73f..7966a33737c0d1754b6fbadcd94aca5edfcd43be 100644 (file)
@@ -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):