diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-05-05 14:44:21 -0700 |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-05-05 14:44:21 -0700 |
commit | e4108154d7394e218695747b18543376d03ead42 (patch) | |
tree | e9131d3c7acbdc8949f4baecf2761092ee0596a2 /pystache/parsed.py | |
parent | a3999641857c1e7b620f3a2513576b493a6101d8 (diff) | |
download | pystache-e4108154d7394e218695747b18543376d03ead42.tar.gz |
Parser no longer requires a RenderEngine instance to parse.
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) |