summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2017-09-04 23:54:09 (GMT)
committerGitHub <noreply@github.com>2017-09-04 23:54:09 (GMT)
commit86b7afdfeee77993fe896a2aa13b3f4f95973f16 (patch)
treea37fbb7233319c671e4787bff683629148cab971 /Python/ceval.c
parentf5ea83f4864232fecc042ff0d1c2401807b19280 (diff)
downloadcpython-86b7afdfeee77993fe896a2aa13b3f4f95973f16.zip
cpython-86b7afdfeee77993fe896a2aa13b3f4f95973f16.tar.gz
cpython-86b7afdfeee77993fe896a2aa13b3f4f95973f16.tar.bz2
bpo-28411: Remove "modules" field from Py_InterpreterState. (#1638)
sys.modules is the one true source.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 92b1331..436e5ca 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -5054,7 +5054,7 @@ import_from(PyObject *v, PyObject *name)
Py_DECREF(pkgname);
return NULL;
}
- x = PyDict_GetItem(PyImport_GetModuleDict(), fullmodname);
+ x = _PyImport_GetModule(fullmodname);
Py_DECREF(fullmodname);
if (x == NULL) {
goto error;