Commit 12634715 by Chris Wanstrath

String conversions now use `unicode()`, are consistent. Fixes #5

parent a708d123
...@@ -110,7 +110,7 @@ class Template(object): ...@@ -110,7 +110,7 @@ class Template(object):
@modifier('{') @modifier('{')
def render_unescaped(self, tag_name=None, context=None): def render_unescaped(self, tag_name=None, context=None):
"""Render a tag without escaping it.""" """Render a tag without escaping it."""
return str(context.get(tag_name, '')) return unicode(context.get(tag_name, ''))
@modifier('>') @modifier('>')
def render_partial(self, tag_name=None, context=None): def render_partial(self, tag_name=None, context=None):
......
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