From 32b7d4dfc1eefd1081c5bf9533c25616aee129bd Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 7 Aug 2013 23:10:01 +0000 Subject: [PATCH] [lit] Explicitly convert dict items() result to a list. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187932 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/lit/lit/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/lit/lit/main.py b/utils/lit/lit/main.py index acf6101d086..c11f02030a2 100755 --- a/utils/lit/lit/main.py +++ b/utils/lit/lit/main.py @@ -297,7 +297,7 @@ def main(builtinParameters = {}): if t.suite not in suitesAndTests: suitesAndTests[t.suite] = [] suitesAndTests[t.suite].append(t) - suitesAndTests = suitesAndTests.items() + suitesAndTests = list(suitesAndTests.items()) suitesAndTests.sort(key = lambda item: item[0].name) # Show the suites, if requested.