Fix line parsing in requirements check
The requirements check script would strip one character from the end of every line without a #, which was a problem if the last line of the file had neither a # or a newline. Change-Id: I89f1114695adc4de6ef95a96cffcf919c88a2ac8
This commit is contained in:
parent
265f476629
commit
9f06bccfb8
@ -43,6 +43,7 @@ class RequirementsList(object):
|
|||||||
if not os.path.exists(fn):
|
if not os.path.exists(fn):
|
||||||
return
|
return
|
||||||
for line in open(fn):
|
for line in open(fn):
|
||||||
|
if '#' in line:
|
||||||
line = line[:line.find('#')]
|
line = line[:line.find('#')]
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
if (not line or
|
if (not line or
|
||||||
|
Loading…
Reference in New Issue
Block a user