Skip to content

Commit 2070a4e

Browse files
committed
Fixed a pyflakes issue.
- Legacy-Id: 14008
1 parent 8a53653 commit 2070a4e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/utils/management/commands/coverage_changes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,20 +136,20 @@ def coverage_diff(self, master, latest, sections, release=None, **options):
136136
self.stdout.write(self.diff_line_format % ("-"*8, "-"*8, "-"*58))
137137
header_written = True
138138
self.stdout.write(self.diff_line_format % (mval, lval, key, ))
139-
if mmisslines and lmisslines and set(lmissnum) != set(mmissnum) and options.get('verbosity',1) > 2:
139+
if mmisslines and lmisslines and set(lmissnum) != set(mmissnum) and options.get('verbosity',1) > 1:
140140
self.stdout.write(' ------------------------------------------------------------')
141141
ln = 0
142142
mn = 0
143143
p = -1
144144
n = 0
145145
for line in ndiff(mmisslines, lmisslines):
146146
n = lmissnum[ln]
147-
prefix, text = line[:2], line[2:]
147+
prefix, text = line[:1], line[2:]
148148
if mn<len(mmisslines) and text == mmisslines[mn]:
149149
mn += 1
150150
if ln<len(lmisslines) and text == lmisslines[ln]:
151151
ln += 1
152-
if line[0] in ['+', '-']:
152+
if prefix in ['+', '-']:
153153
if not n in [p, p+1]:
154154
self.stdout.write('\n')
155155
self.stdout.write("%s" % (line, ))

0 commit comments

Comments
 (0)