mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Removed bogus PyUnicodeTranslateError_GetEncoding, as
UnicodeTranslateError doesn't have an encoding attribute. (Spotted by Neal Norwitz)
This commit is contained in:
parent
fd08e4c9ed
commit
70bb0d4e65
2 changed files with 0 additions and 6 deletions
|
@ -134,7 +134,6 @@ PyAPI_FUNC(PyObject *) PyUnicodeTranslateError_Create(
|
||||||
/* get the encoding attribute */
|
/* get the encoding attribute */
|
||||||
PyAPI_FUNC(PyObject *) PyUnicodeEncodeError_GetEncoding(PyObject *);
|
PyAPI_FUNC(PyObject *) PyUnicodeEncodeError_GetEncoding(PyObject *);
|
||||||
PyAPI_FUNC(PyObject *) PyUnicodeDecodeError_GetEncoding(PyObject *);
|
PyAPI_FUNC(PyObject *) PyUnicodeDecodeError_GetEncoding(PyObject *);
|
||||||
PyAPI_FUNC(PyObject *) PyUnicodeTranslateError_GetEncoding(PyObject *);
|
|
||||||
|
|
||||||
/* get the object attribute */
|
/* get the object attribute */
|
||||||
PyAPI_FUNC(PyObject *) PyUnicodeEncodeError_GetObject(PyObject *);
|
PyAPI_FUNC(PyObject *) PyUnicodeEncodeError_GetObject(PyObject *);
|
||||||
|
|
|
@ -931,11 +931,6 @@ PyObject * PyUnicodeDecodeError_GetEncoding(PyObject *exc)
|
||||||
return get_string(exc, "encoding");
|
return get_string(exc, "encoding");
|
||||||
}
|
}
|
||||||
|
|
||||||
PyObject * PyUnicodeTranslateError_GetEncoding(PyObject *exc)
|
|
||||||
{
|
|
||||||
return get_string(exc, "encoding");
|
|
||||||
}
|
|
||||||
|
|
||||||
PyObject *PyUnicodeEncodeError_GetObject(PyObject *exc)
|
PyObject *PyUnicodeEncodeError_GetObject(PyObject *exc)
|
||||||
{
|
{
|
||||||
return get_unicode(exc, "object");
|
return get_unicode(exc, "object");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue