summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wanstrath <chris@ozmm.org>2010-02-15 10:45:39 -0800
committerChris Wanstrath <chris@ozmm.org>2010-02-15 10:45:39 -0800
commit126347153e90d1916d64b6f06eef1b89c5254673 (patch)
tree4ef650c69a6aa0c1b0e5d9e394435e497e411063
parenta708d123298e592468a55247de88303448a051d2 (diff)
downloadpystache-126347153e90d1916d64b6f06eef1b89c5254673.tar.gz
String conversions now use `unicode()`, are consistent. Fixes #5
-rw-r--r--pystache/template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pystache/template.py b/pystache/template.py
index c942cd7..690710e 100644
--- a/pystache/template.py
+++ b/pystache/template.py
@@ -110,7 +110,7 @@ class Template(object):
@modifier('{')
def render_unescaped(self, tag_name=None, context=None):
"""Render a tag without escaping it."""
- return str(context.get(tag_name, ''))
+ return unicode(context.get(tag_name, ''))
@modifier('>')
def render_partial(self, tag_name=None, context=None):