Remove non-existent argument to Path
All checks were successful
build / test (pull_request) Successful in 12m39s
build / docs (pull_request) Has been skipped

'mode' is not a valid argument to (Pure)Path. Passing keyword arguments is
deprecated since Python 3.12. I don't suspect it ever did anything. It is
removed in Python 3.14.

Without this patch, borgmatic crashes on Python 3.14.

This code was first introduced in e76bfa555f.
This commit is contained in:
2025-10-09 21:57:35 +02:00
parent 2a5e202daf
commit 2b34c62e6f

View File

@@ -246,7 +246,7 @@ def write_check_time(path): # pragma: no cover
logger.debug(f'Writing check time at {path}')
os.makedirs(os.path.dirname(path), mode=0o700, exist_ok=True)
pathlib.Path(path, mode=0o600).touch()
pathlib.Path(path).touch(mode=0o600)
def read_check_time(path):