From bca6c57534e654e1f2abc5d8419f253636c3491f Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 2 Nov 2009 15:03:49 -0500 Subject: Touch-ups in an ancient function. --- coverage/misc.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'coverage/misc.py') 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)) -- cgit v1.2.1