ruff: Fix UP032 Use f-string instead of format call.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-08-02 15:28:59 -07:00
committed by Anders Kaseorg
parent ff409342e1
commit e932e2ce52
14 changed files with 51 additions and 75 deletions

View File

@@ -36,7 +36,7 @@ current_version = version.ZULIP_VERSION
if is_invalid_upgrade(current_version, new_version):
print(
FAIL + "Your current version is very old. Please first upgrade to version "
"1.4.3 and then upgrade to {}.".format(new_version) + ENDC
f"1.4.3 and then upgrade to {new_version}." + ENDC
)
shutil.rmtree(extract_path)
sys.exit(1)