Commit 2345962a authored by Guido van Rossum's avatar Guido van Rossum

Fox the sort() lambda.

parent 748e1f97
......@@ -33,7 +33,7 @@ def run(path, v=0):
if v:
print "%8s %5d %s" % (U64(oid), len(data), key)
L = totals.items()
L.sort(lambda a, b: cmp(b, a))
L.sort(lambda a, b: cmp(a[1], b[1]))
L.reverse()
print "Totals per object class:"
for key, (bytes, count) in L:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment