mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 17:39:16 +00:00
[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:
parent
2e60c882bf
commit
0b714f7686
@ -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])
|
||||
|
||||
|
@ -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')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user