print in Python 2 shouldn't be a function, it's a keyword (without the future import).
This commit is contained in:
1 parent
b036c88b73
commit
0b531d2b17
1 file changed
+4
-1
@@ -154,7 +154,10 @@ class Evaluator(object):
|
|||||||
return self._eval_atom(element)
|
return self._eval_atom(element)
|
||||||
elif isinstance(element, pr.Keyword):
|
elif isinstance(element, pr.Keyword):
|
||||||
# For False/True/None
|
# 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):
|
elif element.isinstance(pr.Lambda):
|
||||||
return [er.LambdaWrapper(self, element)]
|
return [er.LambdaWrapper(self, element)]
|
||||||
elif element.isinstance(er.LambdaWrapper):
|
elif element.isinstance(er.LambdaWrapper):
|
||||||
|
|||||||
Reference in new issue
Block a user