mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
merge 3.3
This commit is contained in:
commit
5c089314ef
3 changed files with 11 additions and 1 deletions
|
@ -1403,7 +1403,8 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *given_globals,
|
|||
if (builtins_import == NULL) {
|
||||
builtins_import = _PyDict_GetItemId(interp->builtins, &PyId___import__);
|
||||
if (builtins_import == NULL) {
|
||||
Py_FatalError("__import__ missing");
|
||||
PyErr_SetString(PyExc_ImportError, "__import__ not found");
|
||||
goto error_with_unlock;
|
||||
}
|
||||
}
|
||||
Py_INCREF(builtins_import);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue