summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pystache/parsed.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pystache/parsed.py b/pystache/parsed.py
index a7c0aae..372d96c 100644
--- a/pystache/parsed.py
+++ b/pystache/parsed.py
@@ -40,10 +40,10 @@ class ParsedTemplate(object):
"""
# We avoid use of the ternary operator for Python 2.4 support.
- def get_unicode(val):
- if type(val) is unicode:
- return val
- return val.render(engine, context)
+ def get_unicode(node):
+ if type(node) is unicode:
+ return node
+ return node.render(engine, context)
parts = map(get_unicode, self._parse_tree)
s = ''.join(parts)