mirror of
https://github.com/sheumann/hush.git
synced 2024-12-23 20:29:42 +00:00
bloat-o-meter: make it python3 compliant
Python 3 doesn't support the iterkeys() method anymore. Use iter(foo.keys()) instead of foo.iterkeys(). Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
7b18107384
commit
8410ac1a07
@ -63,7 +63,7 @@ def getsizes(file):
|
|||||||
else:
|
else:
|
||||||
sym[name] = {"addr" : value, "size": size}
|
sym[name] = {"addr" : value, "size": size}
|
||||||
lut[(value, size)] = 0
|
lut[(value, size)] = 0
|
||||||
for addr, sz in alias.iterkeys():
|
for addr, sz in iter(alias.keys()):
|
||||||
# If the non-GLOBAL sym has an implementation elsewhere then
|
# If the non-GLOBAL sym has an implementation elsewhere then
|
||||||
# it's an alias, disregard it.
|
# it's an alias, disregard it.
|
||||||
if not (addr, sz) in lut:
|
if not (addr, sz) in lut:
|
||||||
@ -92,7 +92,7 @@ if flag_timing:
|
|||||||
grow, shrink, add, remove, up, down = 0, 0, 0, 0, 0, 0
|
grow, shrink, add, remove, up, down = 0, 0, 0, 0, 0, 0
|
||||||
delta, common = [], {}
|
delta, common = [], {}
|
||||||
|
|
||||||
for name in old.iterkeys():
|
for name in iter(old.keys()):
|
||||||
if name in new:
|
if name in new:
|
||||||
common[name] = 1
|
common[name] = 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user