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.
This commit is contained in:
Tim Peters 2002-04-16 01:33:59 +00:00
parent d392506c43
commit c86c1b88f9
1 changed files with 1 additions and 1 deletions

View 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):