Skip to content

Commit

Permalink
[mypyc] Don't use _PyErr_ChainExceptions on 3.12, since it's deprecat…
Browse files Browse the repository at this point in the history
…ed (#15468)
  • Loading branch information
JukkaL committed Jun 19, 2023
1 parent 719e7e7 commit c0e6d28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mypyc/lib-rt/exc_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,11 @@ void CPy_AddTraceback(const char *filename, const char *funcname, int line, PyOb
return;

error:
#if CPY_3_12_FEATURES
_PyErr_ChainExceptions1(exc);
#else
_PyErr_ChainExceptions(exc, val, tb);
#endif
}

CPy_NOINLINE
Expand Down

0 comments on commit c0e6d28

Please sign in to comment.