summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-30 06:48:42 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-30 06:48:42 (GMT)
commitaa64c46ac9ff168d7730182d48665b0b51b4f69d (patch)
treefce292f7bbe0c540de322ec06e96ba0115221f9b /Include
parentd06c201e5bf74dd1ff227ab7bea73c8c790d234b (diff)
downloadcpython-aa64c46ac9ff168d7730182d48665b0b51b4f69d.zip
cpython-aa64c46ac9ff168d7730182d48665b0b51b4f69d.tar.gz
cpython-aa64c46ac9ff168d7730182d48665b0b51b4f69d.tar.bz2
Issue #23781: Add private helper function _PyErr_ReplaceException() that
corresponds _PyErr_ChainExceptions() in Python 3 to help porting patches from Python 3.
Diffstat (limited to 'Include')
-rw-r--r--Include/pyerrors.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index dbe3bfa..2ef205e 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -91,6 +91,7 @@ PyAPI_FUNC(void) PyErr_Restore(PyObject *, PyObject *, PyObject *);
PyAPI_FUNC(int) PyErr_GivenExceptionMatches(PyObject *, PyObject *);
PyAPI_FUNC(int) PyErr_ExceptionMatches(PyObject *);
PyAPI_FUNC(void) PyErr_NormalizeException(PyObject**, PyObject**, PyObject**);
+PyAPI_FUNC(void) _PyErr_ReplaceException(PyObject *, PyObject *, PyObject *);
/* */