aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <thomasp@graphcore.ai>2019-09-25 07:52:26 +0000
committerThomas Preud'homme <thomasp@graphcore.ai>2019-09-25 07:52:26 +0000
commit65d5ffa9872da4a2800fe3ec098b084363321c60 (patch)
tree0ef3fa66c261fc6532840bdcbe4332c6a59b51a5
parent831d4c906f9934dabfc76a60e02a79249b37b32b (diff)
[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 git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@372820 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lnt/tests/compile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lnt/tests/compile.py b/lnt/tests/compile.py
index ddbf90d..2929028 100644
--- a/lnt/tests/compile.py
+++ b/lnt/tests/compile.py
@@ -529,7 +529,7 @@ def test_build(base_name, run_info, variables, project, build_config, num_jobs,
" ".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