We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6393e97 commit 0a682cdCopy full SHA for 0a682cd
Python/import.c
@@ -303,9 +303,7 @@ PyImport_GetModule(PyObject *name)
303
}
304
/* Verify the module is still in sys.modules. Another thread may have
305
removed it (due to import failure) between our import_get_module()
306
- call and the _initializing check in import_ensure_initialized().
307
- Unlike the import path, we return NULL here since this function
308
- only retrieves existing modules and doesn't trigger new imports. */
+ call and the _initializing check in import_ensure_initialized(). */
309
PyObject *mod_check = import_get_module(tstate, name);
310
if (mod_check != mod) {
311
Py_XDECREF(mod_check);
0 commit comments