mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Merge ssize_t branch.
This commit is contained in:
parent
4482929734
commit
18e165558b
102 changed files with 2659 additions and 1677 deletions
|
|
@ -908,7 +908,7 @@ BZ2File_writelines(BZ2FileObject *self, PyObject *seq)
|
|||
PyObject *v = PyList_GET_ITEM(list, i);
|
||||
if (!PyString_Check(v)) {
|
||||
const char *buffer;
|
||||
int len;
|
||||
Py_ssize_t len;
|
||||
if (PyObject_AsCharBuffer(v, &buffer, &len)) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"writelines() "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue