summaryrefslogtreecommitdiff
path: root/Python/exceptions.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2002-09-02 16:41:55 +0000
committerWalter Dörwald <walter@livinglogic.de>2002-09-02 16:41:55 +0000
commit80298d62f08397b097588efcbf0161e162f769dd (patch)
treee3a96743a9acabce8aa85a107816a5657100f14d /Python/exceptions.c
parent8b72dcfc9b9e1d98ae09d99c8503c678cd44cf87 (diff)
downloadcpython-80298d62f08397b097588efcbf0161e162f769dd.tar.gz
Removed bogus PyUnicodeTranslateError_GetEncoding, as
UnicodeTranslateError doesn't have an encoding attribute. (Spotted by Neal Norwitz)
Diffstat (limited to 'Python/exceptions.c')
-rw-r--r--Python/exceptions.c5
1 files changed, 0 insertions, 5 deletions
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");