]> granicus.if.org Git - python/commit
warnings.warn_explicit() did not have the proper TypeErrors in place to prevent
authorBrett Cannon <bcannon@gmail.com>
Fri, 27 Jun 2008 00:31:13 +0000 (00:31 +0000)
committerBrett Cannon <bcannon@gmail.com>
Fri, 27 Jun 2008 00:31:13 +0000 (00:31 +0000)
commitdea1b5653ffd2183c7a4d577a2ca08644dd51248
treedc441e1ddb4884a57e4fc305fa77f87b7a100578
parent80821f7cf4b2af64e444ad71ca13eb96fcbd6454
warnings.warn_explicit() did not have the proper TypeErrors in place to prevent
bus errors or SystemError being raised. As a side effect of fixing this, a bad
DECREF that could be triggered when 'message' and 'category' were both None was
fixed.

Closes issue 3211. Thanks JP Calderone for the bug report.
Lib/test/test_warnings.py
Lib/warnings.py
Misc/NEWS
Python/_warnings.c