Skip to content

Commit

Permalink
Flip a conditional check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed Mar 16, 2023
1 parent a2e5ab8 commit 8da964f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8da964f

Please sign in to comment.