diff --git a/Python/import.c b/Python/import.c index 24fcdb8e5b2718..9f80c6d8dd49a8 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1000,7 +1000,7 @@ get_core_module_dict(PyInterpreterState *interp, static inline int is_core_module(PyInterpreterState *interp, PyObject *name, PyObject *filename) { - return get_core_module_dict(interp, name, filename) == NULL; + return get_core_module_dict(interp, name, filename) != NULL; } static int