#9078: fix some Unicode C API descriptions, in comments and docs.

This commit is contained in:
Georg Brandl 2010-06-27 10:17:12 +00:00
parent 620c6c760d
commit 952867aa30
3 changed files with 11 additions and 11 deletions

View file

@ -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;