From: Walter Dörwald Date: Mon, 2 Sep 2002 16:41:55 +0000 (+0000) Subject: Removed bogus PyUnicodeTranslateError_GetEncoding, as X-Git-Tag: v2.3c1~4236 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70bb0d4e65f7c42aeb138a38735210107ad1ca53;p=python Removed bogus PyUnicodeTranslateError_GetEncoding, as UnicodeTranslateError doesn't have an encoding attribute. (Spotted by Neal Norwitz) --- diff --git a/Include/pyerrors.h b/Include/pyerrors.h index 756c4b2fce..bd44e02967 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 47a4e4d09c..24ea25ddee 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");