summaryrefslogtreecommitdiff
path: root/lab/parser.py
diff options
context:
space:
mode:
authorNed Batchelder <nedbat@gmail.com>2015-10-18 21:50:21 -0400
committerNed Batchelder <nedbat@gmail.com>2015-10-18 21:50:21 -0400
commit25f842aa178488ce5349669a3236926963849123 (patch)
tree58a2731d54a7f3b1b4c54d0cd6382a2c6f6e43d3 /lab/parser.py
parent15100248c12b85a00278371fea60f07718a9d499 (diff)
parenta61a6d732fae956517187405e7f16671998e41cb (diff)
downloadpython-coveragepy-git-25f842aa178488ce5349669a3236926963849123.tar.gz
Merged in jayvdb/coverage.py/py26-unindexed-parameters (pull request #72)
Python 2.6 str.format does not support unindexed parameters
Diffstat (limited to 'lab/parser.py')
-rw-r--r--lab/parser.py4
1 files changed, 2 insertions, 2 deletions
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):