Kaydet (Commit) 70bb0d4e authored tarafından Walter Dörwald's avatar Walter Dörwald

Removed bogus PyUnicodeTranslateError_GetEncoding, as

UnicodeTranslateError doesn't have an encoding attribute.
(Spotted by Neal Norwitz)
üst fd08e4c9
......@@ -134,7 +134,6 @@ PyAPI_FUNC(PyObject *) PyUnicodeTranslateError_Create(
/* get the encoding attribute */
PyAPI_FUNC(PyObject *) PyUnicodeEncodeError_GetEncoding(PyObject *);
PyAPI_FUNC(PyObject *) PyUnicodeDecodeError_GetEncoding(PyObject *);
PyAPI_FUNC(PyObject *) PyUnicodeTranslateError_GetEncoding(PyObject *);
/* get the object attribute */
PyAPI_FUNC(PyObject *) PyUnicodeEncodeError_GetObject(PyObject *);
......
......@@ -931,11 +931,6 @@ PyObject * PyUnicodeDecodeError_GetEncoding(PyObject *exc)
return get_string(exc, "encoding");
}
PyObject * PyUnicodeTranslateError_GetEncoding(PyObject *exc)
{
return get_string(exc, "encoding");
}
PyObject *PyUnicodeEncodeError_GetObject(PyObject *exc)
{
return get_unicode(exc, "object");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment