summaryrefslogtreecommitdiff
path: root/coverage/misc.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-02 15:03:49 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-02 15:03:49 -0500
commitbca6c57534e654e1f2abc5d8419f253636c3491f (patch)
tree22dfe5d7e77aa6f70dbdb851084136d90b920df5 /coverage/misc.py
parent070ac1ffad3b540812e2a7d19b2337c7995d963d (diff)
downloadpython-coveragepy-bca6c57534e654e1f2abc5d8419f253636c3491f.tar.gz
Touch-ups in an ancient function.
Diffstat (limited to 'coverage/misc.py')
-rw-r--r--coverage/misc.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/coverage/misc.py b/coverage/misc.py
index 5ef982c..8e4b336 100644
--- a/coverage/misc.py
+++ b/coverage/misc.py
@@ -29,17 +29,16 @@ def format_lines(statements, lines):
i = 0
j = 0
start = None
- pairs = []
while i < len(statements) and j < len(lines):
if statements[i] == lines[j]:
if start == None:
start = lines[j]
end = lines[j]
- j = j + 1
+ j += 1
elif start:
pairs.append((start, end))
start = None
- i = i + 1
+ i += 1
if start:
pairs.append((start, end))
ret = ', '.join(map(nice_pair, pairs))