[Zope-Checkins] CVS: StandaloneZODB/Tools - space.py:1.3
Guido van Rossum
guido@python.org
Fri, 3 May 2002 14:27:50 -0400
Update of /cvs-repository/StandaloneZODB/Tools
In directory cvs.zope.org:/tmp/cvs-serv3324
Modified Files:
space.py
Log Message:
Fox the sort() lambda.
=== StandaloneZODB/Tools/space.py 1.2 => 1.3 ===
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: