This part only handles object inheritance
No extra dependency added.
Paths
| Differential D55121
Make several Python scripts portable across Python2 and Python 3 ClosedPublic Authored by serge-sans-paille on Nov 30 2018, 6:14 AM.
Details Summary This part only handles object inheritance No extra dependency added.
Diff Detail Event TimelineHerald added subscribers: cfe-commits, kadircet, arphaman, whisperity. · View Herald TranscriptNov 30 2018, 6:14 AM Comment Actions Conversion using the `futurize` script, then manual review. For the sake of reviewer sanity, I've left all the difficult part to further separate commits. Comment Actions In general LGTM, as someone who's done a 2-3 conversion of similar scale before. The only suggestion I'd make is to consider changing the __future__ imports to from __future__ import absolute_import, division, print_function Comment Actions Can you split off the pure modernisation changes like new exception or print ? Those are completely non-contentious changes after all. I generally do not like the range and list related changes as many instances are clear regressions for the 2.x case. filter to list comprehension should IMO be a separate change as well, but those are much less problematic and often an improvement in terms of both performance and readability. This revision is now accepted and ready to land.Dec 3 2018, 4:04 AM Closed by commit rL348127: Portable Python script across version (authored by serge_sans_paille). · Explain WhyDec 3 2018, 4:15 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 176105 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
|