[linux] 03/04: debian_linux.utils._read_rfc822: Parse and ignore comments
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Sat May 14 18:59:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch sid
in repository linux.
commit 581d83dbf0de4d957fd642b1c5cd7c18bdab45b1
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Sat May 14 19:54:34 2016 +0100
debian_linux.utils._read_rfc822: Parse and ignore comments
---
debian/lib/python/debian_linux/utils.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/lib/python/debian_linux/utils.py b/debian/lib/python/debian_linux/utils.py
index f2fb6c3..5d6a7d4 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git
More information about the Kernel-svn-changes
mailing list