[PATCH] D55121: Make several Python scripts portable across Python2 and Python 3
serge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 30 06:15:06 PST 2018
serge-sans-paille created this revision.
serge-sans-paille added reviewers: ddunbar, djasper.
Herald added subscribers: cfe-commits, kadircet, arphaman, whisperity.
Mostly:
- portability of print through from __future__ import print_function
- xrange -> range
- range(...) -> list(range(...))
- x.items() -> list(x.items())
- map(f, l) -> list(map(f, l))
- normalize shebang
No extra dependency added.
Repository:
rC Clang
https://reviews.llvm.org/D55121
Files:
bindings/python/clang/cindex.py
bindings/python/examples/cindex/cindex-dump.py
bindings/python/tests/cindex/test_translation_unit.py
docs/conf.py
docs/tools/dump_format_style.py
tools/clang-format/clang-format-diff.py
tools/scan-build-py/libscanbuild/arguments.py
tools/scan-view/share/Reporter.py
utils/ABITest/ABITestGen.py
utils/ABITest/Enumeration.py
utils/CIndex/completion_logger_server.py
utils/TestUtils/deep-stack.py
utils/analyzer/SATestAdd.py
utils/analyzer/SATestUpdateDiffs.py
utils/analyzer/SumTimerInfo.py
utils/check_cfc/obj_diff.py
utils/check_cfc/setup.py
utils/check_cfc/test_check_cfc.py
utils/clangdiag.py
utils/modfuzz.py
utils/perf-training/perf-helper.py
utils/token-delta.py
www/builtins.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55121.176105.patch
Type: text/x-patch
Size: 47452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181130/62dd99c9/attachment-0001.bin>
More information about the cfe-commits
mailing list