diff options
Diffstat (limited to 'debian/lib/python/debian_linux/utils.py')
-rw-r--r-- | debian/lib/python/debian_linux/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/lib/python/debian_linux/utils.py b/debian/lib/python/debian_linux/utils.py index f2fb6c39cd69..5d6a7d473066 100644 --- a/debian/lib/python/debian_linux/utils.py +++ b/debian/lib/python/debian_linux/utils.py @@ -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 |