Factor-out the common code for setting a KeyError.

This commit is contained in:
Raymond Hettinger 2013-09-02 15:59:26 -07:00
parent 7f5c22c022
commit 69492dab07
4 changed files with 20 additions and 33 deletions

View file

@ -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 */