Reformat files with black

This commit is contained in:
Orsiris de Jong 2024-10-26 12:09:05 +02:00
parent ca6b2622f9
commit 1473423355
3 changed files with 8 additions and 4 deletions

View file

@ -67,8 +67,8 @@ def need_upgrade(upgrade_interval: int) -> bool:
os.path.join(CURRENT_DIR, counter_file),
]
if os.name != "nt":
path_list = [os.path.join('/var/log', counter_file)] + path_list
path_list = [os.path.join("/var/log", counter_file)] + path_list
for file in path_list:
if not os.path.isfile(file):
if _write_count(file, 1):

View file

@ -722,7 +722,6 @@ class ResticRunner:
and operation == "ls"
and self.struct_output
):
js["output"].append(ls_decoder.decode(line))
else:
js["output"].append(decoder.decode(line))

View file

@ -64,7 +64,12 @@ def get_ev_data(cert_data_path):
return pkcs12_certificate, pkcs12_password, container_name, cryptographic_provider
def sign(executable: str = None, arch: str = None, ev_cert_data: str = None, dry_run: bool = False):
def sign(
executable: str = None,
arch: str = None,
ev_cert_data: str = None,
dry_run: bool = False,
):
if ev_cert_data:
(
pkcs12_certificate,