Skip to content

Commit 3912524

Browse files
remove API_VERSION check
we now have better build tools and these exceptions have not been seen since long.
1 parent 013edcd commit 3912524

26 files changed

+14
-60
lines changed

src/borg/archiver/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from ..helpers import format_file_size
4141
from ..helpers import remove_surrogates, text_to_json
4242
from ..helpers import DatetimeWrapper, replace_placeholders
43-
from ..helpers import check_extension_modules
43+
4444
from ..helpers import is_slow_msgpack, is_supported_msgpack, sysinfo
4545
from ..helpers import signal_handler, raising_signal_handler, SigHup, SigTerm
4646
from ..helpers import ErrorIgnoringTextIOWrapper
@@ -456,7 +456,6 @@ def parse_args(self, args=None):
456456

457457
def prerun_checks(self, logger, is_serve):
458458

459-
check_extension_modules()
460459
selftest(logger)
461460

462461
def _setup_implied_logging(self, args):

src/borg/chunkers/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
from .fixed import ChunkerFixed
55
from .reader import * # noqa
66

7-
API_VERSION = "1.2_01"
8-
97

108
def get_chunker(algo, *params, **kw):
119
key = kw.get("key", None)

src/borg/chunkers/buzhash.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ from typing import List, Iterator, BinaryIO
22

33
from .reader import fmap_entry
44

5-
API_VERSION: str
6-
75
def buzhash(data: bytes, seed: int) -> int: ...
86
def buzhash_update(sum: int, remove: int, add: int, len: int, seed: int) -> int: ...
97

src/borg/chunkers/buzhash.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cython: language_level=3
22

3-
API_VERSION = '1.2_01'
3+
44

55
import cython
66
import time

src/borg/chunkers/buzhash64.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ from typing import List, Iterator, BinaryIO
22

33
from .reader import fmap_entry
44

5-
API_VERSION: str
6-
75
def buzhash64(data: bytes, key: bytes) -> int: ...
86
def buzhash64_update(sum: int, remove: int, add: int, len: int, key: bytes) -> int: ...
97
def buzhash64_get_table(key: bytes) -> List[int]: ...

src/borg/chunkers/buzhash64.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cython: language_level=3
22

3-
API_VERSION = '1.2_01'
3+
44

55
import cython
66
import time

src/borg/chunkers/failing.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
API_VERSION = "1.2_01"
2-
31
import os
42
import errno
53
from typing import BinaryIO, Iterator

src/borg/chunkers/fixed.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from typing import Iterator, BinaryIO
22

3-
API_VERSION = "1.2_01"
43

54
import time
65

src/borg/chunkers/reader.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from typing import NamedTuple, Tuple, Dict, List, Any, Type, BinaryIO, Iterator
22

3-
API_VERSION: str
4-
53
has_seek_hole: bool
64

75
class _Chunk(NamedTuple):

src/borg/chunkers/reader.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cython: language_level=3
22

3-
API_VERSION = '1.2_01'
3+
44

55
import os
66
import errno

0 commit comments

Comments
 (0)