Use builtins_module instead of BUILTINS

This commit is contained in:
Dave Halter committed 2017-12-10 18:52:51 +01:00
1 parent afb73876ac
commit 3a7bc92863
10 files changed
+20 -22

No files matched your search

+1 -1
View File
@@ -221,7 +221,7 @@ def eval_atom(context, atom):
@_limit_context_infers
def eval_expr_stmt(context, stmt, seek_name=None):
with recursion.execution_allowed(context.evaluator, stmt) as allowed:
if allowed or context.get_root_context() == context.evaluator.BUILTINS:
if allowed or context.get_root_context() == context.evaluator.builtins_module:
return _eval_expr_stmt(context, stmt, seek_name)
return NO_CONTEXTS