Bug 3018: remove calls to keys() and values() dictionary method where possible

svn: r12579
This commit is contained in:
Gerald Britton
2009-05-27 17:33:45 +00:00
parent 1edada53d0
commit 81a0848490
11 changed files with 60 additions and 49 deletions

View File

@ -101,8 +101,7 @@ class GivenNameCloudGramplet(Gramplet):
totals = {}
for (count, givensubname) in cloud_names: # givensubname_sort:
totals[count] = totals.get(count, 0) + 1
sums = sorted(totals)
sums.reverse()
sums = sorted(totals, reverse=True)
total = 0
include_greater_than = 0
for s in sums: