Skip to content

Commit 0a682cd

Browse files
committed
shorten comment
1 parent 6393e97 commit 0a682cd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Python/import.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,7 @@ PyImport_GetModule(PyObject *name)
303303
}
304304
/* Verify the module is still in sys.modules. Another thread may have
305305
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. */
306+
call and the _initializing check in import_ensure_initialized(). */
309307
PyObject *mod_check = import_get_module(tstate, name);
310308
if (mod_check != mod) {
311309
Py_XDECREF(mod_check);

0 commit comments

Comments
 (0)