diff options
Diffstat (limited to 'pystache/parsed.py')
-rw-r--r-- | pystache/parsed.py | 4 |
1 files changed, 1 insertions, 3 deletions
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) |