]> granicus.if.org Git - python/commit
Simplify main() of test_ast
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 8 Feb 2016 16:15:21 +0000 (17:15 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 8 Feb 2016 16:15:21 +0000 (17:15 +0100)
commitf089196beb0ad8fb262be42eddd92af3f0fe81c1
tree25adac072536b1d48856f4fa7879327d84c1df8c
parentfd625c39d0ffaf048acbbe3a5dade16bef483e1c
Simplify main() of test_ast

* Use ast.parse() to get the AST for a statement
* Use str%args syntax for format a line

Issue #26204.
Lib/test/test_ast.py