From 5f9a9b6a1054629a35d2fdf5d94508166b1b6f43 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 23 Jan 2024 08:02:11 -0500 Subject: [PATCH 1/2] Replace internal API _PyBytes_Join, removed in Python 3.13 --- src/zlib_ng/zlib_ngmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zlib_ng/zlib_ngmodule.c b/src/zlib_ng/zlib_ngmodule.c index d0e528a..79fa29d 100644 --- a/src/zlib_ng/zlib_ngmodule.c +++ b/src/zlib_ng/zlib_ngmodule.c @@ -2810,7 +2810,7 @@ GzipReader_readall(GzipReader *self, PyObject *Py_UNUSED(ignore)) Py_DECREF(chunk_list); return NULL; } - PyObject *ret = _PyBytes_Join(empty_bytes, chunk_list); + PyObject *ret = PyObject_CallMethod(empty_bytes, "join", "O", chunk_list); Py_DECREF(empty_bytes); Py_DECREF(chunk_list); return ret; From 1c63077186a42a49f29d63461c8316f4ea0d4bbb Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 23 Jan 2024 08:31:48 -0500 Subject: [PATCH 2/2] Add a changelog entry for PR#31 --- CHANGELOG.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6a38039..93fbe10 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,6 +7,10 @@ Changelog .. This document is user facing. Please word the changes in such a way .. that users understand how the changes affect the new version. +version 0.5.0-dev +----------------- ++ Fix compatibility with Python 3.13 + version 0.4.0 ----------------- + Add a ``gzip_ng_threaded`` module that contains the ``gzip_ng_threaded.open``