Skip to content

Commit 02eb762

Browse files
committed
bpo-45122: Address code review
1 parent 20a6ea5 commit 02eb762

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mypyc/lib-rt/exc_ops.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ void CPy_TypeError(const char *expected, PyObject *value) {
189189
}
190190
}
191191

192+
// This function is basically exactly the same with _PyTraceback_Add
193+
// which are available in all the versions we support.
194+
// We're continuing to use this because we'll probably optimize this later.
192195
void CPy_AddTraceback(const char *filename, const char *funcname, int line, PyObject *globals) {
193196
PyObject *exc, *val, *tb;
194197
PyThreadState *thread_state = PyThreadState_GET();

0 commit comments

Comments
 (0)