diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-02 15:03:49 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-02 15:03:49 -0500 |
commit | 9680c1e57bc5d1f5d4e0d0c1a8f8a5725b3f4890 (patch) | |
tree | 8b1debc8f2140131a338846a7edea5d7b7e3cee3 /coverage/misc.py | |
parent | 1a270992412d87d477587ab94740f2d003def395 (diff) | |
download | python-coveragepy-git-9680c1e57bc5d1f5d4e0d0c1a8f8a5725b3f4890.tar.gz |
Touch-ups in an ancient function.
Diffstat (limited to 'coverage/misc.py')
-rw-r--r-- | coverage/misc.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/coverage/misc.py b/coverage/misc.py index 5ef982c8..8e4b3362 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)) |