Skip to content

Commit 8da964f

Browse files
Flip a conditional check.
1 parent a2e5ab8 commit 8da964f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/import.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ get_core_module_dict(PyInterpreterState *interp,
10001000
static inline int
10011001
is_core_module(PyInterpreterState *interp, PyObject *name, PyObject *filename)
10021002
{
1003-
return get_core_module_dict(interp, name, filename) == NULL;
1003+
return get_core_module_dict(interp, name, filename) != NULL;
10041004
}
10051005

10061006
static int

0 commit comments

Comments
 (0)