summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-10-19 16:35:36 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-10-19 16:35:36 -0700
commit5b00b6cd392a1f5f317cc18893198bb5d62c565d (patch)
treeef9ba3abab8963a40a49087e254f77271d74662a
parent78f4e11012d94b8a0f8abb6342fc5395392d29a0 (diff)
downloadpystache-5b00b6cd392a1f5f317cc18893198bb5d62c565d.tar.gz
Rename variable name from "val" to "node".
-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)