]> granicus.if.org Git - python/commit
_warnings was importing itself to get an attribute. That's bad if warnings gets
authorBrett Cannon <bcannon@gmail.com>
Wed, 1 Apr 2009 18:03:59 +0000 (18:03 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 1 Apr 2009 18:03:59 +0000 (18:03 +0000)
commit15ba4dae5a2b0bd2f06dff586cb469e7b5325209
tree90c38806dad0ab8ae71a6544096f844d53c30b27
parent24565d296c874402bfc91c32546cb0e0f3eedec5
_warnings was importing itself to get an attribute. That's bad if warnings gets
called in a thread that was spawned by an import itself.

Last part to close #1665206.
Lib/test/test_warnings.py
Misc/NEWS
Python/_warnings.c