mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
print in Python 2 shouldn't be a function, it's a keyword (without the future import).
This commit is contained in:
@@ -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