mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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:
parent
d392506c43
commit
c86c1b88f9
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue