]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
warnings.catch_warnings() now returns a list or None instead of the custom
authorBrett Cannon <bcannon@gmail.com>
Tue, 9 Sep 2008 00:49:16 +0000 (00:49 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 9 Sep 2008 00:49:16 +0000 (00:49 +0000)
commit672237dc6ca1498eabac08554bcbc5bd0fd9ddaa
tree1847849ac1bcb31cc345ad691242d846350097d6
parent631be01252d99e14ec8632ccb6ee898d11345d22
warnings.catch_warnings() now returns a list or None instead of the custom
WarningsRecorder object. This makes the API simpler to use as no special object
must be learned.

Closes issue 3781.
Review by Benjamin Peterson.
24 files changed:
Doc/library/warnings.rst
Lib/asynchat.py
Lib/bsddb/test/test_early_close.py
Lib/mimetools.py
Lib/test/test___all__.py
Lib/test/test_exceptions.py
Lib/test/test_hmac.py
Lib/test/test_import.py
Lib/test/test_macostools.py
Lib/test/test_pep352.py
Lib/test/test_py3kwarn.py
Lib/test/test_random.py
Lib/test/test_re.py
Lib/test/test_struct.py
Lib/test/test_structmembers.py
Lib/test/test_sundry.py
Lib/test/test_support.py
Lib/test/test_symtable.py
Lib/test/test_urllib.py
Lib/test/test_urllibnet.py
Lib/test/test_userstring.py
Lib/test/test_warnings.py
Lib/warnings.py
Misc/NEWS