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/bltinmodule.c b/Python/bltinmodule.c index 5e1f1d3..c363cfe 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c
@@ -2685,7 +2685,7 @@ PyType_Ready(&PyZip_Type) < 0) return NULL; - mod = PyModule_Create(&builtinsmodule); + mod = _PyModule_CreateInitialized(&builtinsmodule, PYTHON_API_VERSION); if (mod == NULL) return NULL; dict = PyModule_GetDict(mod);