[PATCH] D67816: [LNT] Python 3 support: use int() instead of long()
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 20 01:42:24 PDT 2019
thopre created this revision.
thopre added reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls.
thopre added a parent revision: D67815: [LNT] Python 3 support: adapt to filter returning a view.
thopre added a child revision: D67817: [LNT] Python 3 support: adapt to map returning a view.
Use int() rather than long() to interpret a string as a long integer
since Python 3's integer are long by default. This was produced by
running futurize's stage2 lib2to3.fixes.fix_long.
https://reviews.llvm.org/D67816
Files:
lnt/tests/compile.py
Index: lnt/tests/compile.py
===================================================================
--- lnt/tests/compile.py
+++ lnt/tests/compile.py
@@ -529,7 +529,7 @@
" ".join("'%s'" % arg for arg in cmd))
result = subprocess.check_output(cmd).strip()
if result != "fail":
- bytes = long(result)
+ bytes = int(result)
success = True
# For now, the way the software is set up things are going to
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67816.220974.patch
Type: text/x-patch
Size: 514 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190920/89c51334/attachment.bin>
More information about the llvm-commits
mailing list