mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
bytes -> bytearray
This commit is contained in:
parent
ce071ca4e7
commit
4f921c2e06
1 changed files with 1 additions and 1 deletions
|
@ -1895,7 +1895,7 @@ builtin_sum(PyObject *self, PyObject *args)
|
||||||
}
|
}
|
||||||
if (PyByteArray_Check(result)) {
|
if (PyByteArray_Check(result)) {
|
||||||
PyErr_SetString(PyExc_TypeError,
|
PyErr_SetString(PyExc_TypeError,
|
||||||
"sum() can't sum bytes [use b''.join(seq) instead]");
|
"sum() can't sum bytearray [use b''.join(seq) instead]");
|
||||||
Py_DECREF(iter);
|
Py_DECREF(iter);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue