summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Include/pyerrors.h1
-rw-r--r--Python/exceptions.c5
2 files changed, 0 insertions, 6 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index 756c4b2..bd44e02 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -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 *);
diff --git a/Python/exceptions.c b/Python/exceptions.c
index 47a4e4d..24ea25d 100644
--- a/Python/exceptions.c
+++ b/Python/exceptions.c
@@ -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");