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:
|
||||
eof = True
|
||||
break
|
||||
# Strip comments rather than trying to preserve them
|
||||
if line[0] == '#':
|
||||
continue
|
||||
line = line.strip('\n')
|
||||
if not line:
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue