Skip to content

Commit

Permalink
[mypyc] Don't use _PyErr_ChainExceptions on 3.12, since it's deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
JukkaL committed Jun 19, 2023
1 parent 719e7e7 commit 052e61b
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 052e61b

Please sign in to comment.