diff options
author | Raymond Hettinger <python@rcn.com> | 2013-09-02 22:59:26 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2013-09-02 22:59:26 (GMT) |
commit | 69492dab07772f71aa226cbafa03f7d50309dd43 (patch) | |
tree | d1ac5b703936538b8faa0fbd5bd5851064c5010d /Include/pyerrors.h | |
parent | 7f5c22c022592e5e9a82520e152d619f58382e7d (diff) | |
download | cpython-69492dab07772f71aa226cbafa03f7d50309dd43.zip cpython-69492dab07772f71aa226cbafa03f7d50309dd43.tar.gz cpython-69492dab07772f71aa226cbafa03f7d50309dd43.tar.bz2 |
Factor-out the common code for setting a KeyError.
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r-- | Include/pyerrors.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index a279d81..f89d1ad 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -75,6 +75,7 @@ typedef PyOSErrorObject PyWindowsErrorObject; PyAPI_FUNC(void) PyErr_SetNone(PyObject *); PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *); +PyAPI_FUNC(void) _PyErr_SetKeyError(PyObject *); PyAPI_FUNC(void) PyErr_SetString( PyObject *exception, const char *string /* decoded from utf-8 */ |