Export lazy_import in imp module

This commit is contained in:
Dino Viehland 2025-09-18 14:54:37 -07:00
parent 3b0d745e73
commit 9eef03cc80
3 changed files with 26 additions and 4 deletions

View file

@ -4980,6 +4980,11 @@ imp_module_exec(PyObject *module)
return -1;
}
if (PyModule_AddObjectRef(module, "lazy_import",
(PyObject *)&PyLazyImport_Type) < 0) {
return -1;
}
return 0;
}