removed complexity of builtin scope

This commit is contained in:
David Halter
2012-09-03 16:20:20 +02:00
parent 1775843e23
commit 663d808f9f
3 changed files with 9 additions and 17 deletions

View File

@@ -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: