Package: python-debian
Version: 0.1.21+nmu2

Hello,

while debugging an autopkgtest bug[1] I noticed that python-debian's
parsing of paragraphs ignores everything after a line comment. Simple
reproducer:

$ echo -e 'Build-Depends: foo,\n#comment\n bar' | python -c 'import sys, 
debian.deb822; l = [p for p in 
debian.deb822.Deb822.iter_paragraphs(sys.stdin)]; print(l)'
[{'Build-Depends': u'foo,'}]

This parses

---------
Build-Depends: foo,
#comment
 bar
---------

but "bar" doesn't appear in the result. E. g. lintian has that in its
debian/control file.

Thanks for considering,

Martin

[1] https://launchpad.net/bugs/1300031
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

Attachment: signature.asc
Description: Digital signature

-- 
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-python-debian-maint

Reply via email to