From 8ac86b8caee9c4166002797f77a11e5c4a2eb2aa Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 9 Oct 2020 02:31:12 +0200 Subject: [PATCH 1/2] syncfilerange: add cython: language_level=3 --- src/borg/platform/syncfilerange.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/borg/platform/syncfilerange.pyx b/src/borg/platform/syncfilerange.pyx index f3c57ef31..d578cab07 100644 --- a/src/borg/platform/syncfilerange.pyx +++ b/src/borg/platform/syncfilerange.pyx @@ -1,3 +1,5 @@ +# cython: language_level=3 + from libc.stdint cimport int64_t From dabbcf7231019878fdb50cd524faf24a6dc1a78b Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 9 Oct 2020 02:36:23 +0200 Subject: [PATCH 2/2] msgpack: add cython: language_level=2 does not cythonize with language_level=3. --- src/borg/algorithms/msgpack/_packer.pyx | 2 +- src/borg/algorithms/msgpack/_unpacker.pyx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/borg/algorithms/msgpack/_packer.pyx b/src/borg/algorithms/msgpack/_packer.pyx index c490a5b6c..2aba15105 100644 --- a/src/borg/algorithms/msgpack/_packer.pyx +++ b/src/borg/algorithms/msgpack/_packer.pyx @@ -1,5 +1,5 @@ # coding: utf-8 -#cython: embedsignature=True, c_string_encoding=ascii +#cython: embedsignature=True, c_string_encoding=ascii, language_level=2 from cpython cimport * from cpython.version cimport PY_MAJOR_VERSION diff --git a/src/borg/algorithms/msgpack/_unpacker.pyx b/src/borg/algorithms/msgpack/_unpacker.pyx index 0abd9c101..79df33686 100644 --- a/src/borg/algorithms/msgpack/_unpacker.pyx +++ b/src/borg/algorithms/msgpack/_unpacker.pyx @@ -1,5 +1,5 @@ # coding: utf-8 -#cython: embedsignature=True, c_string_encoding=ascii +#cython: embedsignature=True, c_string_encoding=ascii, language_level=2 from cpython.version cimport PY_MAJOR_VERSION from cpython.bytes cimport (