summaryrefslogtreecommitdiff
path: root/helper.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-05-11 22:46:13 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-05-11 22:46:13 +0200
commitf1dd0bc2eeea1819b572794424ef3b26b060acff (patch)
treea64b50e134c9b03d642c0235edeb9c84d1aae765 /helper.py
parentb03ea8f602ba34382d1de26605bb800ccf9866f7 (diff)
downloadweb-f1dd0bc2eeea1819b572794424ef3b26b060acff.tar.gz
web-f1dd0bc2eeea1819b572794424ef3b26b060acff.tar.bz2
web-f1dd0bc2eeea1819b572794424ef3b26b060acff.zip
Make sure, that the changelog parser returns unicode objects as they are expected by mako
Diffstat (limited to 'helper.py')
-rw-r--r--helper.py4
1 files changed, 2 insertions, 2 deletions
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])