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:
Victor Stinner 2017-12-06 17:25:50 +01:00 committed by GitHub
parent a2a25eb037
commit 672b6baa71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 11 deletions

View file

@ -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;
}