]> granicus.if.org Git - python/commit
compiler: don't emit SyntaxWarning on const stmt
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 8 Feb 2016 21:45:06 +0000 (22:45 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 8 Feb 2016 21:45:06 +0000 (22:45 +0100)
commit15a3095d64e96d0fe7448270f2c5b0bf22f9c4e1
treeda112b21f47896fd48d61ac70429cf5001d89f90
parent896632ea6b2b03815ae948aea05972b4e51247ed
compiler: don't emit SyntaxWarning on const stmt

Issue #26204: the compiler doesn't emit SyntaxWarning warnings anymore when
constant statements are ignored.
Lib/test/test_ast.py
Lib/test/test_code.py
Lib/test/test_grammar.py
Misc/NEWS
Python/compile.c