Skip to content

Commit feb81cf

Browse files
Merge pull request #9330 from ThomasWaldmann/remove-check-python-master
Remove some checks (master)
2 parents 4e35c37 + 3912524 commit feb81cf

26 files changed

+15
-75
lines changed

src/borg/archiver/__init__.py

Lines changed: 2 additions & 5 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_python, 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
@@ -455,10 +455,7 @@ def parse_args(self, args=None):
455455
return args
456456

457457
def prerun_checks(self, logger, is_serve):
458-
if not is_serve:
459-
# this is the borg *client*, we need to check the python:
460-
check_python()
461-
check_extension_modules()
458+
462459
selftest(logger)
463460

464461
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)