break if leading comments are all fetched

This commit is contained in:
Arount 2017-07-01 00:02:16 +02:00 committed by Loren Gordon
parent d7f65dc7a7
commit 38add0e4a2

View File

@ -2548,6 +2548,8 @@ def _parse_repo_file(filename):
for line in rawfile:
if line.strip().startswith('#'):
headers += '{0}\n'.format(line.strip())
else:
break
return (headers, config)