mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +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
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue