From 5b00b6cd392a1f5f317cc18893198bb5d62c565d Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Fri, 19 Oct 2012 16:35:36 -0700 Subject: Rename variable name from "val" to "node". --- pystache/parsed.py | 8 ++++---- 1 file 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) -- cgit v1.2.1