[PATCH] D67881: [LNT] Python 3 support: replace xrange with Python3's range
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 21 10:22:57 PDT 2019
thopre created this revision.
thopre added reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls.
thopre added a parent revision: D67880: [LNT] Python 3 support: use chr instead of unichr.
Use Python 3's range instead of xrange by importing it from builtins.
Also encapsulate existing uses of range into a call to list since it
returns an immutable sequence type in Python 3. This was produced by
running futurize's stage2 libfuturize.fixes.fix_xrange_with_import.
https://reviews.llvm.org/D67881
Files:
lnt/external/stats/stats.py
lnt/testing/profile/profilev2impl.py
lnt/tests/nt.py
tests/utils/blast.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67881.221185.patch
Type: text/x-patch
Size: 4741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190921/1ce9c858/attachment.bin>
More information about the llvm-commits
mailing list