Skip to content

Commit 37011be

Browse files
authored
Merge pull request #31 from musicinmybrain/python3.13
Replace internal API _PyBytes_Join, removed in Python 3.13
2 parents dc647e2 + 1c63077 commit 37011be

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.rst

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Changelog
77
.. This document is user facing. Please word the changes in such a way
88
.. that users understand how the changes affect the new version.
99
10+
version 0.5.0-dev
11+
-----------------
12+
+ Fix compatibility with Python 3.13
13+
1014
version 0.4.0
1115
-----------------
1216
+ Add a ``gzip_ng_threaded`` module that contains the ``gzip_ng_threaded.open``

src/zlib_ng/zlib_ngmodule.c

+1-1
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)