Skip to content

Commit 8bce275

Browse files
committed
use context initialization for branch
1 parent b9f84f4 commit 8bce275

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/statement/AbstractImportNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ protected final Object importModule(VirtualFrame frame, String name, Object glob
133133
// Look up built-in modules supported by GraalPython
134134
PythonContext context = getContext();
135135
Python3Core core = context.getCore();
136-
if (!core.isInitialized()) {
137-
PythonModule builtinModule = context.getCore().lookupBuiltinModule(name);
136+
if (!context.isInitialized()) {
137+
PythonModule builtinModule = core.lookupBuiltinModule(name);
138138
if (builtinModule != null) {
139139
return builtinModule;
140140
}

0 commit comments

Comments
 (0)