diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-03-21 21:36:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 21:36:31 (GMT) |
commit | 76350e85ebf96df588384f3d9bdc20d11045bef4 (patch) | |
tree | dfc8197d86f5cbb646d932d05e7612435887c5c7 /Include/cpython/pyerrors.h | |
parent | e6ecd3e6b437f3056e0a410a57c52e2639b56353 (diff) | |
download | cpython-76350e85ebf96df588384f3d9bdc20d11045bef4.zip cpython-76350e85ebf96df588384f3d9bdc20d11045bef4.tar.gz cpython-76350e85ebf96df588384f3d9bdc20d11045bef4.tar.bz2 |
gh-102406: replace exception chaining by PEP-678 notes in codecs (#102407)
Diffstat (limited to 'Include/cpython/pyerrors.h')
-rw-r--r-- | Include/cpython/pyerrors.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h index d0300f6..65bdc94 100644 --- a/Include/cpython/pyerrors.h +++ b/Include/cpython/pyerrors.h @@ -116,24 +116,6 @@ PyAPI_FUNC(int) _PyException_AddNote( PyObject *exc, PyObject *note); -/* Helper that attempts to replace the current exception with one of the - * same type but with a prefix added to the exception text. The resulting - * exception description looks like: - * - * prefix (exc_type: original_exc_str) - * - * Only some exceptions can be safely replaced. If the function determines - * it isn't safe to perform the replacement, it will leave the original - * unmodified exception in place. - * - * Returns a borrowed reference to the new exception (if any), NULL if the - * existing exception was left in place. - */ -PyAPI_FUNC(PyObject *) _PyErr_TrySetFromCause( - const char *prefix_format, /* ASCII-encoded string */ - ... - ); - /* In signalmodule.c */ int PySignal_SetWakeupFd(int fd); |