Merge "Fix line parsing in requirements check"

This commit is contained in:
Jenkins 2013-08-16 22:58:35 +00:00 committed by Gerrit Code Review
commit ba5ef099f8

View File

@ -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