mirror of
https://github.com/python/cpython.git
synced 2025-09-19 15:10:58 +00:00
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:
parent
b4701e638c
commit
3497f94476
11 changed files with 513 additions and 476 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue