commit | 672237dc6ca1498eabac08554bcbc5bd0fd9ddaa | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Tue Sep 09 00:49:16 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Tue Sep 09 00:49:16 2008 +0000 |
tree | 1847849ac1bcb31cc345ad691242d846350097d6 | |
parent | 631be01252d99e14ec8632ccb6ee898d11345d22 [diff] |
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.