mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-23 22:15:43 +08:00
Reformat files with black
This commit is contained in:
parent
0fc31247eb
commit
cd673152e7
3 changed files with 5 additions and 3 deletions
|
@ -46,7 +46,7 @@ THREAD_SHARED_DICT = {}
|
|||
|
||||
def _about_gui(version_string: str, config_dict: dict) -> None:
|
||||
license_content = LICENSE_TEXT
|
||||
|
||||
|
||||
result = check_new_version(config_dict)
|
||||
if result:
|
||||
new_version = [
|
||||
|
|
|
@ -181,7 +181,9 @@ def auto_upgrader(
|
|||
platform_and_arch = "{}/{}".format(get_os(), os_arch()).lower()
|
||||
|
||||
try:
|
||||
host_id = "{}/{}/{}".format(auto_upgrade_host_identity, installed_version, group)
|
||||
host_id = "{}/{}/{}".format(
|
||||
auto_upgrade_host_identity, installed_version, group
|
||||
)
|
||||
id_record = "{}/{}".format(platform_and_arch, host_id)
|
||||
except TypeError:
|
||||
id_record = platform_and_arch
|
||||
|
|
|
@ -51,7 +51,7 @@ def get_current_version() -> Optional[CurrentVersion]:
|
|||
try:
|
||||
path = os.path.join(config_dict["upgrades"]["data_root"], "VERSION")
|
||||
if os.path.isfile(path):
|
||||
with open(path, "r", encoding='utf-8') as fh:
|
||||
with open(path, "r", encoding="utf-8") as fh:
|
||||
ver = fh.readline()
|
||||
return CurrentVersion(version=ver)
|
||||
except OSError:
|
||||
|
|
Loading…
Reference in a new issue