diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2018-10-28 10:48:42 +1300 |
---|---|---|
committer | Douglas Bagnall <dbagnall@samba.org> | 2018-11-01 05:08:10 +0100 |
commit | 2013cd2889df484efbfb106fea38085bfbb0315c (patch) | |
tree | d6438686bde4e4a2300d66389230bb93bcc2c344 /script/show_test_time | |
parent | b1ba193dd0afdcf1d7320277527b652fcb762d32 (diff) | |
download | samba-2013cd2889df484efbfb106fea38085bfbb0315c.tar.gz |
script/show_test_time: attempt py3 compat
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'script/show_test_time')
-rwxr-xr-x | script/show_test_time | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/show_test_time b/script/show_test_time index a35e2154275..fae7b814f49 100755 --- a/script/show_test_time +++ b/script/show_test_time @@ -26,7 +26,7 @@ if opts.limit: print("Top %d tests by run time:" % opts.limit) for i, (name, length) in enumerate(sorted( - durations.items(), cmp=lambda (k1,v1), (k2, v2): cmp(v1, v2), reverse=True)): + durations.items(), key=lambda x: x[1], reverse=True)): if opts.limit and i == opts.limit: break print("%d: %s -> %ds" % (i+1, name, length)) |