From 8da964f06b54988777ee24eccd36af7f00cae654 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Wed, 15 Mar 2023 18:06:25 -0600 Subject: [PATCH] Flip a conditional check. --- Python/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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