diff options
author | Chris Wanstrath <chris@ozmm.org> | 2010-02-15 10:45:39 -0800 |
---|---|---|
committer | Chris Wanstrath <chris@ozmm.org> | 2010-02-15 10:45:39 -0800 |
commit | 126347153e90d1916d64b6f06eef1b89c5254673 (patch) | |
tree | 4ef650c69a6aa0c1b0e5d9e394435e497e411063 | |
parent | a708d123298e592468a55247de88303448a051d2 (diff) | |
download | pystache-126347153e90d1916d64b6f06eef1b89c5254673.tar.gz |
String conversions now use `unicode()`, are consistent. Fixes #5
-rw-r--r-- | pystache/template.py | 2 |
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): |