summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-10-25 17:42:27 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-10-25 17:42:27 -0400
commit3bd028bcb0852a29f2833b2a3ebafec1526408a0 (patch)
treed5d901edcfd52d56eebf40e8956edf24f48e10f5
parentb810cbc0d06df0a04e3380166215b8ad2f40524c (diff)
parent25f842aa178488ce5349669a3236926963849123 (diff)
downloadpython-coveragepy-git-3bd028bcb0852a29f2833b2a3ebafec1526408a0.tar.gz
Merged
-rw-r--r--ci/download_appveyor.py4
-rw-r--r--lab/parser.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/ci/download_appveyor.py b/ci/download_appveyor.py
index a4ef8d53..f640b41a 100644
--- a/ci/download_appveyor.py
+++ b/ci/download_appveyor.py
@@ -17,7 +17,7 @@ def make_auth_headers():
token = f.read().strip()
headers = {
- 'Authorization': 'Bearer {}'.format(token),
+ 'Authorization': 'Bearer {0}'.format(token),
}
return headers
@@ -86,7 +86,7 @@ def unpack_zipfile(filename):
with open(filename, 'rb') as fzip:
z = zipfile.ZipFile(fzip)
for name in z.namelist():
- print " extracting {}".format(name)
+ print " extracting {0}".format(name)
ensure_dirs(name)
z.extract(name)
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):