Kaydet (Commit) 8387a353 authored tarafından Anthony Baxter's avatar Anthony Baxter

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.
üst 12ef609a
......@@ -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):
......
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