mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Export lazy_import in imp module
This commit is contained in:
parent
3b0d745e73
commit
9eef03cc80
3 changed files with 26 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue