Skip to content

Commit fb66119

Browse files
author
Thomas Preud'homme
committed
[LNT] Python 3 support: use int() instead of long()
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. Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls Reviewed By: hubert.reinterpretcast Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D67816 llvm-svn: 372820
1 parent 873b1b5 commit fb66119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lnt/tests/compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def test_build(base_name, run_info, variables, project, build_config, num_jobs,
529529
" ".join("'%s'" % arg for arg in cmd))
530530
result = subprocess.check_output(cmd).strip()
531531
if result != "fail":
532-
bytes = long(result)
532+
bytes = int(result)
533533
success = True
534534

535535
# For now, the way the software is set up things are going to

0 commit comments

Comments
 (0)