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 176363 cfe/trunk/bindings/python/clang/cindex.py
cfe/trunk/docs/tools/dump_format_style.py
cfe/trunk/tools/scan-view/share/Reporter.py
cfe/trunk/tools/scan-view/share/ScanView.py
cfe/trunk/utils/ABITest/ABITestGen.py
cfe/trunk/utils/ABITest/TypeGen.py
cfe/trunk/utils/analyzer/CmpRuns.py
cfe/trunk/utils/modfuzz.py
cfe/trunk/utils/token-delta.py
|