]> granicus.if.org Git - python/commit
The silencing of DeprecationWarning was not taking -3 into consideration. Since
authorBrett Cannon <bcannon@gmail.com>
Thu, 14 Jan 2010 20:00:28 +0000 (20:00 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 14 Jan 2010 20:00:28 +0000 (20:00 +0000)
commit3ffa43db4892d3a836c63911c5a13a8be5670fa5
tree5b28b121ee874b1a7341b0cf50fdcec777919e7b
parentefdddd3370fc646836b6113247159846734fc129
The silencing of DeprecationWarning was not taking -3 into consideration. Since
Py3K warnings are DeprecationWarning by default this was causing -3 to
essentially be a no-op. Now DeprecationWarning is only silenced if -3 is not
used.

Closes issue #7700. Thanks Ezio Melotti and Florent Xicluna for patch help.
Lib/warnings.py
Misc/NEWS
Python/_warnings.c