Public bug reported:
Binary package hint: python-debian
The interface for Changelog.__init__ and Changelog.parse_changelog look
like you could pass in a 'file' object or any iterable of lines. (like a
list of lines).
However if you look closer, in the
if isinstance(file, basestring):
section it does
file = file.split('\n')
Which removes all '\n' characters, and the following for loop assumes
that is true (so it adds them back in).
It should probably instead do something like:
file = file.splitlines(True)
and then leave the individual lines alone.
This would allow you to pass in a real file() object, or anything that
can be iterated to get lines out.
** Affects: python-debian (Ubuntu)
Importance: Undecided
Status: New
--
Changelog.parse_changelog doesn't actually take an iterable of lines
https://bugs.launchpad.net/bugs/516785
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs