Skip to content

Commit 5e999e2

Browse files
committed
Fix: don't add frozen modules to builtinModules
1 parent 4808b92 commit 5e999e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ImpModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ public static Object importFrozenModuleObject(Python3Core core, String name, boo
646646

647647
PCode code = (PCode) MarshalModuleBuiltins.Marshal.load(info.data, info.size);
648648

649-
PythonModule module = core.createModule(name);
649+
PythonModule module = core.factory().createPythonModule(name);
650650

651651
if (info.isPackage) {
652652
/* Set __path__ to the empty list */

0 commit comments

Comments
 (0)