Commit 01481192 by Pieter van de Bruggen

Promote strings to Unicode.

parent 64b7005b
......@@ -74,7 +74,7 @@ class Template(object):
parsed = self._parse(self.template)
def call(x):
return callable(x) and x(self.view) or x
return unicode(callable(x) and x(self.view) or x)
result = ''.join(map(call, parsed))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment