]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Replace noop constant statement with expression
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 8 Feb 2016 16:57:02 +0000 (17:57 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 8 Feb 2016 16:57:02 +0000 (17:57 +0100)
commit51d8c526d5634fa1f0e4976fd357c5423a792082
tree5aaa710f4f336f949691c88f70a221169ccc42f8
parentf089196beb0ad8fb262be42eddd92af3f0fe81c1
Replace noop constant statement with expression

* Constant statements will be ignored and the compiler will emit a
  SyntaxWarning.
* Replace constant statement (ex: "1") with an expression statement
  (ex: "x=1").
* test_traceback: use context manager on the file.

Issue #26204.
Lib/test/test_inspect.py
Lib/test/test_peepholer.py
Lib/test/test_support.py
Lib/test/test_sys_settrace.py
Lib/test/test_traceback.py