Merge "Fix line parsing in requirements check"
This commit is contained in:
commit
ba5ef099f8
@ -43,7 +43,8 @@ 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):
|
||||||
line = line[:line.find('#')]
|
if '#' in line:
|
||||||
|
line = line[:line.find('#')]
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
if (not line or
|
if (not line or
|
||||||
line.startswith('http://tarballs.openstack.org/') or
|
line.startswith('http://tarballs.openstack.org/') or
|
||||||
|
Loading…
Reference in New Issue
Block a user