From a61a6d732fae956517187405e7f16671998e41cb Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Mon, 19 Oct 2015 09:40:42 +1100 Subject: Python 2.6 str.format does not support unindexed parameters --HG-- branch : py26-unindexed-parameters --- lab/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lab/parser.py') diff --git a/lab/parser.py b/lab/parser.py index 1343f4ce..97c81d89 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("{} total opcodes".format(total)) + print("{0} total opcodes".format(total)) for opcode, number in opcode_counts.most_common(): - print("{:20s} {:6d} {:.1%}".format(opcode, number, number/total)) + print("{0:20s} {1:6d} {2:.1%}".format(opcode, number, number/total)) def one_file(self, options, filename): -- cgit v1.2.1