summaryrefslogtreecommitdiffstats
path: root/Python/legacy_tracing.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/legacy_tracing.c')
-rw-r--r--Python/legacy_tracing.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/legacy_tracing.c b/Python/legacy_tracing.c
index 5143b79..9cc48fc 100644
--- a/Python/legacy_tracing.c
+++ b/Python/legacy_tracing.c
@@ -244,7 +244,7 @@ sys_trace_line_func(
"Missing frame when calling trace function.");
return NULL;
}
- assert(args[0] == (PyObject *)frame->f_frame->f_code);
+ assert(args[0] == (PyObject *)_PyFrame_GetCode(frame->f_frame));
return trace_line(tstate, self, frame, line);
}
@@ -286,7 +286,6 @@ sys_trace_jump_func(
"Missing frame when calling trace function.");
return NULL;
}
- assert(code == frame->f_frame->f_code);
if (!frame->f_trace_lines) {
Py_RETURN_NONE;
}