diff options
author | John Vandenberg <jayvdb@gmail.com> | 2015-10-19 09:40:42 +1100 |
---|---|---|
committer | John Vandenberg <jayvdb@gmail.com> | 2015-10-19 09:40:42 +1100 |
commit | 79627de376bd5d5102f678f3d9e0dd77c9e7698e (patch) | |
tree | 74047effab1cdc42b262eb9230fd06f6c2019d5b /lab | |
parent | 2825bdb540f1b14ae9855e57ecb0b1e4d1098894 (diff) | |
download | python-coveragepy-79627de376bd5d5102f678f3d9e0dd77c9e7698e.tar.gz |
Python 2.6 str.format does not support unindexed parameters
Diffstat (limited to 'lab')
-rw-r--r-- | lab/parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lab/parser.py b/lab/parser.py index 1343f4c..97c81d8 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): |