Skip to content

Commit 3fcf23f

Browse files
committed
use getCore().getBuiltins() instead of getCore().lookupBuiltinModule(BUILTINS)
1 parent 46f1590 commit 3fcf23f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/cext/PythonCextCEvalBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public Object release(@Cached GetDictIfExistsNode getDictNode,
139139
@Cached TransformExceptionToNativeNode transformExceptionToNativeNode,
140140
@Cached GetNativeNullNode getNativeNullNode) {
141141
try {
142-
PythonModule cext = getContext().getCore().lookupBuiltinModule(BUILTINS);
142+
PythonModule cext = getCore().getBuiltins();
143143
return getDictNode.execute(cext);
144144
} catch (PException e) {
145145
transformExceptionToNativeNode.execute(e);

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/cext/PythonCextPythonRunBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public Object run(VirtualFrame frame, Object source, Object stype, Object global
9797
@Cached TransformExceptionToNativeNode transformExceptionToNativeNode,
9898
@Cached GetNativeNullNode getNativeNull) {
9999
try {
100-
PythonModule builtins = getContext().getCore().lookupBuiltinModule(BUILTINS);
100+
PythonModule builtins = getCore().getBuiltins();
101101
Object compileCallable = lookupNode.execute(frame, builtins, COMPILE);
102102
Object code = callNode.execute(frame, compileCallable, source, stype, stype);
103103
Object execCallable = lookupNode.execute(frame, builtins, EXEC);

0 commit comments

Comments
 (0)