mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00
#9078: fix some Unicode C API descriptions, in comments and docs.
This commit is contained in:
parent
620c6c760d
commit
952867aa30
3 changed files with 11 additions and 11 deletions
|
@ -1273,7 +1273,7 @@ PyObject *PyUnicode_FromEncodedObject(register PyObject *obj,
|
|||
case of a TypeError. */
|
||||
if (PyErr_ExceptionMatches(PyExc_TypeError))
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"coercing to str: need string or buffer, "
|
||||
"coercing to str: need bytes, bytearray or char buffer, "
|
||||
"%.80s found",
|
||||
Py_TYPE(obj)->tp_name);
|
||||
goto onError;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue