Browse Source

Merge pull request #4241 from ThomasWaldmann/cythonize-ll3-1.1

add "# cython: language_level=3" directive to .pyx files, fixes #4214
TW 6 years ago
parent
commit
56433f7e25

+ 2 - 0
src/borg/algorithms/checksums.pyx

@@ -1,3 +1,5 @@
+# cython: language_level=3
+
 from ..helpers import bin_to_hex
 
 from libc.stdint cimport uint32_t

+ 1 - 1
src/borg/chunker.pyx

@@ -1,4 +1,4 @@
-# -*- coding: utf-8 -*-
+# cython: language_level=3
 
 API_VERSION = '1.1_01'
 

+ 2 - 0
src/borg/compress.pyx

@@ -1,3 +1,5 @@
+# cython: language_level=3
+
 """
 borg.compress
 =============

+ 2 - 0
src/borg/crypto/low_level.pyx

@@ -1,3 +1,5 @@
+# cython: language_level=3
+
 """A thin OpenSSL wrapper"""
 
 import hashlib

+ 2 - 1
src/borg/hashindex.pyx

@@ -1,4 +1,5 @@
-# -*- coding: utf-8 -*-
+# cython: language_level=3
+
 from collections import namedtuple
 import locale
 import os

+ 2 - 0
src/borg/item.pyx

@@ -1,3 +1,5 @@
+# cython: language_level=3
+
 import stat
 from collections import namedtuple
 

+ 2 - 0
src/borg/platform/darwin.pyx

@@ -1,3 +1,5 @@
+# cython: language_level=3
+
 import os
 
 from ..helpers import user2uid, group2gid

+ 2 - 0
src/borg/platform/freebsd.pyx

@@ -1,3 +1,5 @@
+# cython: language_level=3
+
 import os
 
 from ..helpers import posix_acl_use_stored_uid_gid

+ 2 - 0
src/borg/platform/linux.pyx

@@ -1,3 +1,5 @@
+# cython: language_level=3
+
 import os
 import re
 import stat

+ 2 - 0
src/borg/platform/posix.pyx

@@ -1,3 +1,5 @@
+# cython: language_level=3
+
 import errno
 import os