First step of the C API rename:

renamed Include/bytesobject.h to Include/bytearrayobject.h
renamed Include/stringobject.h to Include/bytesobject.h
added Include/stringobject.h with aliases
This commit is contained in:
Christian Heimes 2008-05-26 12:29:14 +00:00
parent b4701e638c
commit 3497f94476
11 changed files with 513 additions and 476 deletions

View file

@ -1084,7 +1084,7 @@ PyObject *PyUnicode_FromEncodedObject(register PyObject *obj,
s = PyString_AS_STRING(obj);
len = PyString_GET_SIZE(obj);
}
else if (PyBytes_Check(obj)) {
else if (PyByteArray_Check(obj)) {
/* Python 2.x specific */
PyErr_Format(PyExc_TypeError,
"decoding bytearray is not supported");