mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-11 01:41:57 -04:00
make ruff happy
This commit is contained in:
parent
1231c961fb
commit
3e7a4cd814
3 changed files with 2 additions and 10 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import argparse
|
||||
import functools
|
||||
import os
|
||||
import textwrap
|
||||
|
|
@ -211,7 +210,8 @@ def with_other_repository(manifest=False, cache=False, compatibility=None):
|
|||
acceptable_versions = (1, 2) if v1_or_v2 else (3,)
|
||||
if repository.version not in acceptable_versions:
|
||||
raise Error(
|
||||
f"This borg version only accepts version {' or '.join(acceptable_versions)} repos for --other-repo."
|
||||
f"This borg version only accepts version {' or '.join(acceptable_versions)} "
|
||||
f"repos for --other-repo."
|
||||
)
|
||||
kwargs["other_repository"] = repository
|
||||
if manifest or cache:
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ import pkgutil
|
|||
import textwrap
|
||||
from hashlib import sha256
|
||||
|
||||
from borgstore.store import ObjectNotFound as StoreObjectNotFound
|
||||
|
||||
from ..helpers import Error, yes, bin_to_hex, hex_to_bin, dash_open
|
||||
from ..manifest import Manifest, NoManifestError
|
||||
from ..repository3 import Repository3
|
||||
from ..repository import Repository
|
||||
from ..repoobj import RepoObj
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
import io
|
||||
import os.path
|
||||
|
||||
from ..helpers.msgpack import packb
|
||||
|
||||
import pytest
|
||||
|
||||
from .hashindex import H
|
||||
|
|
|
|||
Loading…
Reference in a new issue