mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-17 05:49:37 +08:00
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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user