Skip to content

Commit

Permalink
Py3k compatibility.
Browse files Browse the repository at this point in the history
Lifted from PR #164.
  • Loading branch information
tseaver committed Aug 31, 2018
1 parent 1b1025c commit b2b6f2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ZODB/scripts/analyze.py
Expand Up @@ -67,8 +67,7 @@ def report(rep):
fmts = "%46s %7d %8dk %5.1f%% %7.2f" # summary format
print(fmt % ("Class Name", "Count", "TBytes", "Pct", "AvgSize"))
print(fmt % ('-'*46, '-'*7, '-'*9, '-'*5, '-'*7))
typemap = rep.TYPEMAP.keys()
typemap.sort()
typemap = sorted(rep.TYPEMAP)
cumpct = 0.0
for t in typemap:
pct = rep.TYPESIZE[t] * 100.0 / rep.DBYTES
Expand Down

0 comments on commit b2b6f2c

Please sign in to comment.