gh-116809: Restore removed _PyErr_ChainExceptions1() function (#116900)

This commit is contained in:
Victor Stinner 2024-03-16 21:37:11 +01:00 committed by GitHub
parent 259dbc448d
commit 5e0a070dfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View file

@ -88,6 +88,10 @@ typedef PyOSErrorObject PyEnvironmentErrorObject;
typedef PyOSErrorObject PyWindowsErrorObject;
#endif
/* Context manipulation (PEP 3134) */
PyAPI_FUNC(void) _PyErr_ChainExceptions1(PyObject *);
/* In exceptions.c */
PyAPI_FUNC(PyObject*) PyUnstable_Exc_PrepReraiseStar(

View file

@ -167,9 +167,6 @@ void _PyErr_FormatNote(const char *format, ...);
Py_DEPRECATED(3.12) extern void _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *);
// Export for '_zoneinfo' shared extension
PyAPI_FUNC(void) _PyErr_ChainExceptions1(PyObject *);
#ifdef __cplusplus
}
#endif

View file

@ -0,0 +1,2 @@
Restore removed private ``_PyErr_ChainExceptions1()`` function. Patch by
Victor Stinner.