mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-29 06:46:26 +08:00
Reformat files with black
This commit is contained in:
parent
ca6b2622f9
commit
1473423355
3 changed files with 8 additions and 4 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue