Bug#647455: python-debian: Deb822.iter_paragraphs() claims to work on strings, but actually requires lists of strings

Stefano Rivera stefanor at debian.org
Wed Nov 2 20:45:01 UTC 2011


Package: python-debian
Version: 0.1.21
Severity: normal
Tags: patch

Deb822.__init__ says:
        :param sequence: a string, or any any object that returns a line of
            input each time, normally a file().  Alternately, sequence can
            be a dict that contains the initial key-value pairs.

and iter_paragraphs says:
        :param sequence: same as in __init__.

However, it breaks with a single string. Even the test suite passes a
list of strings.

Attached patch adds quick-and-dirty support for a single string.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iter_paragraphs-string.patch
Type: text/x-diff
Size: 1435 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20111102/7cdd6e6d/attachment.patch>


More information about the pkg-python-debian-maint mailing list