The recursion detector doesn't need to separate params and normal statements anymore, because now they are two completely different things.

This commit is contained in:
Dave Halter
2015-04-28 01:26:48 +02:00
parent 265e6b2c35
commit 71547641ae
+1 -3
View File
@@ -7,7 +7,6 @@ Next to :mod:`jedi.evaluate.cache` this module also makes |jedi| not
thread-safe. Why? ``execution_recursion_decorator`` uses class variables to thread-safe. Why? ``execution_recursion_decorator`` uses class variables to
count the function calls. count the function calls.
""" """
from jedi.parser import tree as pr
from jedi import debug from jedi import debug
from jedi import settings from jedi import settings
from jedi.evaluate import compiled from jedi.evaluate import compiled
@@ -81,8 +80,7 @@ class _RecursionNode(object):
# Don't check param instances, they are not causing recursions # Don't check param instances, they are not causing recursions
# The same's true for the builtins, because the builtins are really # The same's true for the builtins, because the builtins are really
# simple. # simple.
self.is_ignored = isinstance(stmt, pr.Param) \ self.is_ignored = self.script == compiled.builtin
or (self.script == compiled.builtin)
def __eq__(self, other): def __eq__(self, other):
if not other: if not other: