diff options
author | Marek Polacek <mmpolacek@gmail.com> | 2010-10-26 02:34:36 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-28 21:39:40 +0200 |
commit | 8410ac1a073272affe8acdb0da67e5753ea051f8 (patch) | |
tree | 84f461a16220545523e4d0e16e0158cc5d80e0be | |
parent | 7b18107384d950358e146d42bf02b391fab5ffd6 (diff) | |
download | busybox-w32-8410ac1a073272affe8acdb0da67e5753ea051f8.tar.gz busybox-w32-8410ac1a073272affe8acdb0da67e5753ea051f8.tar.bz2 busybox-w32-8410ac1a073272affe8acdb0da67e5753ea051f8.zip |
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>
-rwxr-xr-x | scripts/bloat-o-meter | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index 95cbbe6b8..91374c1ca 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter | |||
@@ -63,7 +63,7 @@ def getsizes(file): | |||
63 | else: | 63 | else: |
64 | sym[name] = {"addr" : value, "size": size} | 64 | sym[name] = {"addr" : value, "size": size} |
65 | lut[(value, size)] = 0 | 65 | lut[(value, size)] = 0 |
66 | for addr, sz in alias.iterkeys(): | 66 | for addr, sz in iter(alias.keys()): |
67 | # If the non-GLOBAL sym has an implementation elsewhere then | 67 | # If the non-GLOBAL sym has an implementation elsewhere then |
68 | # it's an alias, disregard it. | 68 | # it's an alias, disregard it. |
69 | if not (addr, sz) in lut: | 69 | if not (addr, sz) in lut: |
@@ -92,7 +92,7 @@ if flag_timing: | |||
92 | grow, shrink, add, remove, up, down = 0, 0, 0, 0, 0, 0 | 92 | grow, shrink, add, remove, up, down = 0, 0, 0, 0, 0, 0 |
93 | delta, common = [], {} | 93 | delta, common = [], {} |
94 | 94 | ||
95 | for name in old.iterkeys(): | 95 | for name in iter(old.keys()): |
96 | if name in new: | 96 | if name in new: |
97 | common[name] = 1 | 97 | common[name] = 1 |
98 | 98 | ||