ubuntutools/requestsync/common.py: convert the changelog into a unicode string

(lp: #498349)
This commit is contained in:
Michael Bienia 2009-12-20 14:11:30 +01:00
parent 47abdefae9
commit a6002f06e0
2 changed files with 8 additions and 2 deletions

6
debian/changelog vendored
View File

@ -8,7 +8,11 @@ ubuntu-dev-tools (0.86) UNRELEASED; urgency=low
* submittodebian: if patch is relatively small (shorter than fifty
lines), display it inline instead of attaching to the report.
-- Kumar Appaiah <akumar@debian.org> Fri, 18 Dec 2009 21:30:30 +0100
[ Michael Bienia ]
* ubuntutools/requestsync/common.py: convert the changelog into a unicode
string (lp: #498349)
-- Michael Bienia <geser@ubuntu.com> Sun, 20 Dec 2009 14:08:31 +0100
ubuntu-dev-tools (0.85) lucid; urgency=low

View File

@ -63,9 +63,11 @@ def getDebianChangelog(srcpkg, version):
new_entries = ''
changelog = Changelog(changelog.read())
# see also Debian #539334
for block in changelog._blocks:
if block.version > version:
new_entries += str(block)
# see also Debian #561805
new_entries += unicode(str(block).decode('utf-8'))
return new_entries