Skip to content

Commit 1dc5a3c

Browse files
author
doerwalter
committed
Removed bogus PyUnicodeTranslateError_GetEncoding, as
UnicodeTranslateError doesn't have an encoding attribute. (Spotted by Neal Norwitz) git-svn-id: http://svn.python.org/projects/python/trunk@28521 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 0936f2c commit 1dc5a3c

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

Include/pyerrors.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ PyAPI_FUNC(PyObject *) PyUnicodeTranslateError_Create(
134134
/* get the encoding attribute */
135135
PyAPI_FUNC(PyObject *) PyUnicodeEncodeError_GetEncoding(PyObject *);
136136
PyAPI_FUNC(PyObject *) PyUnicodeDecodeError_GetEncoding(PyObject *);
137-
PyAPI_FUNC(PyObject *) PyUnicodeTranslateError_GetEncoding(PyObject *);
138137

139138
/* get the object attribute */
140139
PyAPI_FUNC(PyObject *) PyUnicodeEncodeError_GetObject(PyObject *);

Python/exceptions.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -931,11 +931,6 @@ PyObject * PyUnicodeDecodeError_GetEncoding(PyObject *exc)
931931
return get_string(exc, "encoding");
932932
}
933933

934-
PyObject * PyUnicodeTranslateError_GetEncoding(PyObject *exc)
935-
{
936-
return get_string(exc, "encoding");
937-
}
938-
939934
PyObject *PyUnicodeEncodeError_GetObject(PyObject *exc)
940935
{
941936
return get_unicode(exc, "object");

0 commit comments

Comments
 (0)