mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-32030: pass interp to _PyImport_Init() (#4736)
Remove also the initstr variable, unused since the commit
e69f0df45b
pushed in 2012: "bpo-13959:
Re-implement imp.find_module() in Lib/imp.py"
This commit is contained in:
parent
a2a25eb037
commit
672b6baa71
3 changed files with 3 additions and 11 deletions
|
@ -751,7 +751,7 @@ _Py_InitializeCore(const _PyCoreConfig *config)
|
|||
PySys_SetObject("__stderr__", pstderr);
|
||||
Py_DECREF(pstderr);
|
||||
|
||||
err = _PyImport_Init();
|
||||
err = _PyImport_Init(interp);
|
||||
if (_Py_INIT_FAILED(err)) {
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue