commit | 86b7afdfeee77993fe896a2aa13b3f4f95973f16 | [log] [tgz] |
---|---|---|
author | Eric Snow <ericsnowcurrently@gmail.com> | Mon Sep 04 17:54:09 2017 -0600 |
committer | GitHub <noreply@github.com> | Mon Sep 04 17:54:09 2017 -0600 |
tree | a37fbb7233319c671e4787bff683629148cab971 | |
parent | f5ea83f4864232fecc042ff0d1c2401807b19280 [diff] [blame] |
bpo-28411: Remove "modules" field from Py_InterpreterState. (#1638) sys.modules is the one true source.
diff --git a/Python/importdl.c b/Python/importdl.c index d8656b9..32fb7e1 100644 --- a/Python/importdl.c +++ b/Python/importdl.c
@@ -215,7 +215,8 @@ else Py_INCREF(path); - if (_PyImport_FixupExtensionObject(m, name_unicode, path) < 0) + PyObject *modules = PyImport_GetModuleDict(); + if (_PyImport_FixupExtensionObject(m, name_unicode, path, modules) < 0) goto error; Py_DECREF(name_unicode);