From 252b145833d7cc8f22be4a803be5a1dd654433f4 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 11 Aug 2022 06:30:16 +0200 Subject: [PATCH] remove now unused argument() --- src/borg/archiver/common.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/borg/archiver/common.py b/src/borg/archiver/common.py index 5e42d08a8..ecdbd135f 100644 --- a/src/borg/archiver/common.py +++ b/src/borg/archiver/common.py @@ -27,15 +27,6 @@ logger = create_logger(__name__) -def argument(args, str_or_bool): - """If bool is passed, return it. If str is passed, retrieve named attribute from args.""" - if isinstance(str_or_bool, str): - return getattr(args, str_or_bool) - if isinstance(str_or_bool, (list, tuple)): - return any(getattr(args, item) for item in str_or_bool) - return str_or_bool - - def get_repository(location, *, create, exclusive, lock_wait, lock, append_only, make_parent_dirs, storage_quota, args): if location.proto == "ssh": repository = RemoteRepository(