]> granicus.if.org Git - python/commitdiff
Removed bogus PyUnicodeTranslateError_GetEncoding, as
authorWalter Dörwald <walter@livinglogic.de>
Mon, 2 Sep 2002 16:41:55 +0000 (16:41 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Mon, 2 Sep 2002 16:41:55 +0000 (16:41 +0000)
UnicodeTranslateError doesn't have an encoding attribute.
(Spotted by Neal Norwitz)

Include/pyerrors.h
Python/exceptions.c

index 756c4b2fcecec4ec0b45102321e92dab4bc7a53f..bd44e02967e2f944c410cf33796bdd63a3e17344 100644 (file)
@@ -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 *);
index 47a4e4d09cff94e65929bfad440f618079c6ee4d..24ea25ddee0b848ac26554bd2732c98b34b6ae45 100644 (file)
@@ -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");