From e4108154d7394e218695747b18543376d03ead42 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Sat, 5 May 2012 14:44:21 -0700 Subject: Parser no longer requires a RenderEngine instance to parse. --- pystache/parsed.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pystache/parsed.py') diff --git a/pystache/parsed.py b/pystache/parsed.py index 0055837..eb138cd 100644 --- a/pystache/parsed.py +++ b/pystache/parsed.py @@ -45,9 +45,7 @@ class ParsedTemplate(object): """ # We avoid use of the ternary operator for Python 2.4 support. def get_unicode(val): - if callable(val): - return val(context) - if isinstance(val, basestring): + if type(val) is unicode: return val return val.render(engine, context) parts = map(get_unicode, self._parse_tree) -- cgit v1.2.1