projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d392506
)
resetwarnings(): change the docstring to reflect what the code
author
Tim Peters
<tim.peters@gmail.com>
Tue, 16 Apr 2002 01:33:59 +0000
(
01:33
+0000)
committer
Tim 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
patch
|
blob
|
history
diff --git
a/Lib/warnings.py
b/Lib/warnings.py
index 7ae98209699f13bcbd83578cef3add8121c8a73f..7966a33737c0d1754b6fbadcd94aca5edfcd43be 100644
(file)
--- a/
Lib/warnings.py
+++ b/
Lib/warnings.py
@@
-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 stat
e."""
+ """
Clear the list of warning filters, so that no filters are activ
e."""
filters[:] = []
class _OptionError(Exception):