From dabbcf7231019878fdb50cd524faf24a6dc1a78b Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 9 Oct 2020 02:36:23 +0200 Subject: [PATCH] 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 (