From f1dd0bc2eeea1819b572794424ef3b26b060acff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 11 May 2010 22:46:13 +0200 Subject: Make sure, that the changelog parser returns unicode objects as they are expected by mako --- helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helper.py') diff --git a/helper.py b/helper.py index 1828b5e..866e93d 100644 --- a/helper.py +++ b/helper.py @@ -72,8 +72,8 @@ def getChangelogs (path): for f in sorted((f for f in os.listdir(appPath) if f.endswith(".txt") and not f[0] == "."), key = ver_to_int, reverse = True): io = cStringIO.StringIO() - md.convertFile(input = opj(appPath, f), output = io, encoding="utf8") - html = io.getvalue() + md.convertFile(input = opj(appPath, f), output = io, encoding="utf-8") + html = unicode(io.getvalue(), "utf-8") io.close() yield (html, f[:-4]) -- cgit v1.2.3