Tweaked coverage_changes command. I suspect this would benefit from a rewrite.

- Legacy-Id: 16019
This commit is contained in:
Henrik Levkowetz 2019-03-11 16:52:09 +00:00
parent 9a96018b89
commit fc18cd93d4

View file

@ -146,9 +146,9 @@ class Command(BaseCommand):
p = -1
n = 0
for line in ndiff(mmisslines, lmisslines):
if ln < len(lmissnum):
if ln < len(lmissnum):
n = lmissnum[ln]
else:
elif mn < len(mmissnum):
n = mmissnum[mn]
prefix, text = line[:1], line[2:]
if mn<len(mmisslines) and text == mmisslines[mn]: