]> granicus.if.org Git - python/commit
The _warnings module did not properly handle cases where strings were not being
authorBrett Cannon <bcannon@gmail.com>
Tue, 2 Sep 2008 04:01:42 +0000 (04:01 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 2 Sep 2008 04:01:42 +0000 (04:01 +0000)
commit54bd41d81b23eb5d7f7a5f71fa2ceec28fb60296
treeb3a716539809d01303911389ecc245e1900070b4
parentec92e181fb912e9dc0935fc10bd61bfd4fb237d7
The _warnings module did not properly handle cases where strings were not being
passed in as the message to use for a warning. Fixed along with making the code
more robust against other errors where return values were not checked.

Closes issue 3639.
Code review by Benjamin Peterson.
Lib/test/test_warnings.py
Misc/NEWS
Python/_warnings.c