Skip to content

Commit 5e0a070

Browse files
authored
gh-116809: Restore removed _PyErr_ChainExceptions1() function (#116900)
1 parent 259dbc4 commit 5e0a070

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Include/cpython/pyerrors.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ typedef PyOSErrorObject PyEnvironmentErrorObject;
8888
typedef PyOSErrorObject PyWindowsErrorObject;
8989
#endif
9090

91+
/* Context manipulation (PEP 3134) */
92+
93+
PyAPI_FUNC(void) _PyErr_ChainExceptions1(PyObject *);
94+
9195
/* In exceptions.c */
9296

9397
PyAPI_FUNC(PyObject*) PyUnstable_Exc_PrepReraiseStar(

Include/internal/pycore_pyerrors.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ void _PyErr_FormatNote(const char *format, ...);
167167

168168
Py_DEPRECATED(3.12) extern void _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *);
169169

170-
// Export for '_zoneinfo' shared extension
171-
PyAPI_FUNC(void) _PyErr_ChainExceptions1(PyObject *);
172-
173170
#ifdef __cplusplus
174171
}
175172
#endif
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Restore removed private ``_PyErr_ChainExceptions1()`` function. Patch by
2+
Victor Stinner.

0 commit comments

Comments
 (0)