Skip to content

Commit 5f9a9b6

Browse files
Replace internal API _PyBytes_Join, removed in Python 3.13
1 parent dc647e2 commit 5f9a9b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zlib_ng/zlib_ngmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2810,7 +2810,7 @@ GzipReader_readall(GzipReader *self, PyObject *Py_UNUSED(ignore))
28102810
Py_DECREF(chunk_list);
28112811
return NULL;
28122812
}
2813-
PyObject *ret = _PyBytes_Join(empty_bytes, chunk_list);
2813+
PyObject *ret = PyObject_CallMethod(empty_bytes, "join", "O", chunk_list);
28142814
Py_DECREF(empty_bytes);
28152815
Py_DECREF(chunk_list);
28162816
return ret;

0 commit comments

Comments
 (0)