Skip to content

Commit

Permalink
replace assignment by assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Sep 7, 2023
1 parent 6b15ff5 commit 5cfdc2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/instrumentation.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ _Py_Instrumentation_GetLine(PyCodeObject *code, int index)
int
_Py_call_instrumentation_line(PyThreadState *tstate, _PyInterpreterFrame* frame, _Py_CODEUNIT *instr, _Py_CODEUNIT *prev)
{
frame->prev_instr = instr;
assert(frame->prev_instr == instr);
PyCodeObject *code = _PyFrame_GetCode(frame);
assert(is_version_up_to_date(code, tstate->interp));
assert(instrumentation_cross_checks(tstate->interp, code));
Expand Down

0 comments on commit 5cfdc2d

Please sign in to comment.