mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 07:14:48 +08:00
removed complexity of builtin scope
This commit is contained in:
@@ -72,7 +72,7 @@ class RecursionNode(object):
|
||||
# The same's true for the builtins, because the builtins are really
|
||||
# simple.
|
||||
self.is_ignored = isinstance(stmt, parsing.Param) \
|
||||
or (self.script == builtin.Builtin.scope)
|
||||
or (self.script == builtin.builtin_scope)
|
||||
|
||||
def __eq__(self, other):
|
||||
if not other:
|
||||
@@ -117,7 +117,7 @@ class ExecutionRecursionDecorator(object):
|
||||
if isinstance(execution.base, (evaluate.Generator, evaluate.Array)):
|
||||
return False
|
||||
module = execution.get_parent_until()
|
||||
if evaluate_generator or module == builtin.Builtin.scope:
|
||||
if evaluate_generator or module == builtin.builtin_scope:
|
||||
return False
|
||||
|
||||
if in_par_execution_funcs:
|
||||
|
||||
Reference in New Issue
Block a user