[lit] Remove use of deprecated parameter tuple unpacking.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187855 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2013-08-07 03:17:27 +00:00
parent 2e60c882bf
commit 0b714f7686
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ def whichTools(tools, paths):
def printHistogram(items, title = 'Items'):
import itertools, math
items.sort(key = lambda (_,v): v)
items.sort(key = lambda item: item[1])
maxValue = max([v for _,v in items])

View File

@ -295,7 +295,7 @@ def main(builtinParameters = {}):
suitesAndTests[t.suite] = []
suitesAndTests[t.suite].append(t)
suitesAndTests = suitesAndTests.items()
suitesAndTests.sort(key = lambda (ts,_): ts.name)
suitesAndTests.sort(key = lambda item: item[0].name)
# Show the suites, if requested.
if opts.showSuites:
@ -417,7 +417,7 @@ def main(builtinParameters = {}):
times[key] = times.get(key, 0.) + t.elapsed
byTime = list(times.items())
byTime.sort(key = lambda (name,elapsed): elapsed)
byTime.sort(key = lambda item: item[1])
if byTime:
Util.printHistogram(byTime, title='Tests')