warnings.catch_warnings() now returns a list or None instead of the custom
commit02df5f3070a54702a8178b211351d032897ba9b6
authorbrett.cannon <brett.cannon@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 9 Sep 2008 00:49:16 +0000 (9 00:49 +0000)
committerbrett.cannon <brett.cannon@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 9 Sep 2008 00:49:16 +0000 (9 00:49 +0000)
tree032b6b0fd5a31351f39970812e2610ad9a6be725
parentfb714d542af43945cf428252d3f542fb597c56c0
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.

git-svn-id: http://svn.python.org/projects/python/trunk@66321 6015fed2-1504-0410-9fe1-9d1591cc4771
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