debian_linux.utils._read_rfc822: Parse and ignore comments
This commit is contained in:
parent
5917a891aa
commit
581d83dbf0
|
@ -61,6 +61,9 @@ def _read_rfc822(f, cls):
|
||||||
if not line:
|
if not line:
|
||||||
eof = True
|
eof = True
|
||||||
break
|
break
|
||||||
|
# Strip comments rather than trying to preserve them
|
||||||
|
if line[0] == '#':
|
||||||
|
continue
|
||||||
line = line.strip('\n')
|
line = line.strip('\n')
|
||||||
if not line:
|
if not line:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue