diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-11 22:46:13 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-11 22:46:13 +0200 |
commit | f1dd0bc2eeea1819b572794424ef3b26b060acff (patch) | |
tree | a64b50e134c9b03d642c0235edeb9c84d1aae765 /helper.py | |
parent | b03ea8f602ba34382d1de26605bb800ccf9866f7 (diff) | |
download | web-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.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]) |