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.
diff --git a/Misc/NEWS b/Misc/NEWS
index 2f90b5e..16f1cdb 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -21,7 +21,8 @@
values. Also fix a number of bugs in dtoa.c that could lead to
incorrectly rounded results when converting strings to floats.
-- Issue #7319: Silence DeprecationWarning by default.
+- Issue #7319, #7770: Silence DeprecationWarning by default when -3 is not
+ used.
- Issue #2335: Backport set literals syntax from Python 3.x.