[LNT] r372820 - [LNT] Python 3 support: use int() instead of long()

Thomas Preud'homme via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 00:52:26 PDT 2019


Author: thopre
Date: Wed Sep 25 00:52:26 2019
New Revision: 372820

URL: http://llvm.org/viewvc/llvm-project?rev=372820&view=rev
Log:
[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

Modified:
    lnt/trunk/lnt/tests/compile.py

Modified: lnt/trunk/lnt/tests/compile.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/compile.py?rev=372820&r1=372819&r2=372820&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/compile.py (original)
+++ lnt/trunk/lnt/tests/compile.py Wed Sep 25 00:52:26 2019
@@ -529,7 +529,7 @@ def test_build(base_name, run_info, vari
                            " ".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




More information about the llvm-commits mailing list