]> granicus.if.org Git - python/commit
When DeprecationWarning was silenced by default, it also silenced any use of -Q
authorBrett Cannon <bcannon@gmail.com>
Sun, 25 Apr 2010 22:33:36 +0000 (22:33 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 25 Apr 2010 22:33:36 +0000 (22:33 +0000)
commit1994969c15a055d2f9479d3bc10fb6304b2979ed
tree2a3cf51468cd824600a531482ff11e04fbdd29a7
parenta624040d72b7a83bab4737fdfe14b747b530f858
When DeprecationWarning was silenced by default, it also silenced any use of -Q
by default as well. This change fixes that by treating -Q like -3 when it comes
to DeprecationWarning; using it causes the silencing to not occur.

Fixes issue #7319.
Lib/subprocess.py
Lib/warnings.py
Misc/NEWS
Python/_warnings.c