aboutsummaryrefslogtreecommitdiff
path: root/htmlchangelog.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-10-30 15:08:02 +0100
committerGuido Günther <agx@sigxcpu.org>2015-10-30 15:08:02 +0100
commit504f049a1582599fce8f853d464ffabc14544127 (patch)
tree684bd76ab47bb20e8439a6d84e7419295a198230 /htmlchangelog.py
parente711b0e9496069e177f23d5a90ada350ea8abdec (diff)
Encode to unicode
to we work with genshi 0.7
Diffstat (limited to 'htmlchangelog.py')
-rw-r--r--htmlchangelog.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/htmlchangelog.py b/htmlchangelog.py
index 426b994..432f251 100644
--- a/htmlchangelog.py
+++ b/htmlchangelog.py
@@ -48,8 +48,8 @@ class HTMLChangelog(debian.changelog.Changelog):
strict=strict)
self.templatedir = templatedir
loader = TemplateLoader(self.templatedir)
- self.html_tmpl = loader.load('cl.html')
- self.block_tmpl = loader.load('block.html')
+ self.html_tmpl = loader.load('cl.html', encoding='utf-8')
+ self.block_tmpl = loader.load('block.html', encoding='utf-8')
self.filter = HTMLChangelogFilter(vcsbrowser=vcsbrowser)
def markup_block(self, block):
@@ -60,5 +60,5 @@ class HTMLChangelog(debian.changelog.Changelog):
return self.html_tmpl.generate(title=title, blocks=self._blocks, markup_block=self.markup_block)
def __str__(self):
- return self.stream().render('xhtml', doctype='xhtml-strict')
+ return self.stream().render('xhtml', doctype='xhtml-strict').encode('utf-8')