Reformat files with black

This commit is contained in:
Orsiris de Jong 2023-02-02 23:39:06 +01:00
parent 0fc31247eb
commit cd673152e7
3 changed files with 5 additions and 3 deletions

View file

@ -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 = [

View file

@ -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

View file

@ -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: