diff options
Diffstat (limited to 'lab')
-rw-r--r-- | lab/parser.py | 4 | ||||
-rw-r--r-- | lab/platform_info.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lab/parser.py b/lab/parser.py index b3560506..bf203189 100644 --- a/lab/parser.py +++ b/lab/parser.py @@ -65,9 +65,9 @@ class ParserMain(object): if options.histogram: total = sum(opcode_counts.values()) - print("{0} total opcodes".format(total)) + print("{} total opcodes".format(total)) for opcode, number in opcode_counts.most_common(): - print("{0:20s} {1:6d} {2:.1%}".format(opcode, number, number/total)) + print("{:20s} {:6d} {:.1%}".format(opcode, number, number/total)) def one_file(self, options, filename): """Process just one file.""" diff --git a/lab/platform_info.py b/lab/platform_info.py index 61e02dd2..7ddde47a 100644 --- a/lab/platform_info.py +++ b/lab/platform_info.py @@ -15,11 +15,11 @@ def whatever(f): def dump_module(mod): - print("\n### {0} ---------------------------".format(mod.__name__)) + print("\n### {} ---------------------------".format(mod.__name__)) for name in dir(mod): if name.startswith("_"): continue - print("{0:30s}: {1!r:.100}".format(name, whatever(getattr(mod, name)))) + print("{:30s}: {!r:.100}".format(name, whatever(getattr(mod, name)))) for mod in [platform, sys]: |