Skip to content

Commit

Permalink
add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Aug 23, 2024
1 parent 2631385 commit 5d2229d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1719,6 +1719,7 @@ dict_lookup_arg(PyObject *dict, PyObject *name)
static int
compiler_lookup_cellvar(struct compiler *c, PyObject *name)
{
assert(c->u->u_metadata.u_cellvars);
return dict_lookup_arg(c->u->u_metadata.u_cellvars, name);
}

Expand Down

0 comments on commit 5d2229d

Please sign in to comment.