Code formatting.
Some checks failed
build / test (push) Failing after 2m27s
build / docs (push) Has been skipped

This commit is contained in:
Dan Helfman 2024-10-26 20:34:48 -07:00
parent f8c9d985e8
commit fc7a2852e0

View File

@ -110,7 +110,10 @@ def extract_archive(
# is so this doesn't count the final path component, e.g. the filename itself.
strip_components = max(
0,
*(len(tuple(piece for piece in path.split(os.path.sep) if piece)) - 1 for path in paths)
*(
len(tuple(piece for piece in path.split(os.path.sep) if piece)) - 1
for path in paths
),
)
working_directory = borgmatic.config.options.get_working_directory(config)