Skip to content

Commit

Permalink
Removed bogus PyUnicodeTranslateError_GetEncoding, as
Browse files Browse the repository at this point in the history
UnicodeTranslateError doesn't have an encoding attribute.
(Spotted by Neal Norwitz)
  • Loading branch information
doerwalter committed Sep 2, 2002
1 parent fd08e4c commit 70bb0d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion Include/pyerrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand Down
5 changes: 0 additions & 5 deletions Python/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 70bb0d4

Please sign in to comment.