Kaydet (Commit) c86c1b88 authored tarafından Tim Peters's avatar Tim Peters

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.
üst d392506c
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment