Skip to content

Commit

Permalink
Remove redundant _PyFrame_GetCode
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframAlph committed Dec 16, 2023
1 parent d91e43e commit ab73c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -10450,7 +10450,7 @@ super_init_without_args(_PyInterpreterFrame *cframe, PyCodeObject *co,
return -1;
}

assert(_PyFrame_GetCode(cframe)->co_nlocalsplus > 0);
assert(co->co_nlocalsplus > 0);
PyObject *firstarg = _PyFrame_GetLocalsArray(cframe)[0];
// The first argument might be a cell.
if (firstarg != NULL && (_PyLocals_GetKind(co->co_localspluskinds, 0) & CO_FAST_CELL)) {
Expand Down

0 comments on commit ab73c34

Please sign in to comment.