[PATCH] D70119: Improve gen_ast_dump_json_test.py
Alexander Richardson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 14 15:22:46 PST 2019
arichardson marked 2 inline comments as done.
arichardson added inline comments.
================
Comment at: clang/test/AST/gen_ast_dump_json_test.py:3
+from __future__ import print_function
from collections import OrderedDict
----------------
aaron.ballman wrote:
> Is this needed? I don't see anything using `print_function`.
Thanks for reviewing!
Despite the mismatched name, all python 3 print features depend on this. For example the `sep=` and function like syntax. Python2 prints a tuple for paren expressions instead of treating print as a function.
================
Comment at: clang/test/AST/gen_ast_dump_json_test.py:11
import re
+import tempfile
import subprocess
----------------
aaron.ballman wrote:
> Can you keep this in alphabetical order?
Will fix before committing.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70119/new/
https://reviews.llvm.org/D70119
More information about the cfe-commits
mailing list