print in Python 2 shouldn't be a function, it's a keyword (without the future import).

This commit is contained in:
Dave Halter
2015-03-06 01:01:20 +01:00
parent b036c88b73
commit 0b531d2b17

View File

@@ -154,7 +154,10 @@ class Evaluator(object):
return self._eval_atom(element)
elif isinstance(element, pr.Keyword):
# For False/True/None
return [compiled.builtin.get_by_name(element.value)]
if element.value in ('False', 'True', 'None'):
return [compiled.builtin.get_by_name(element.value)]
else:
return []
elif element.isinstance(pr.Lambda):
return [er.LambdaWrapper(self, element)]
elif element.isinstance(er.LambdaWrapper):