python: Reformat with Black, except quotes.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-11 23:19:30 -08:00
committed by Tim Abbott
parent 5028c081cb
commit 11741543da
817 changed files with 44952 additions and 24860 deletions

View File

@@ -34,17 +34,16 @@ subprocess.check_call(["tar", "-xf", tarball_path, "-C", extract_path])
new_version = get_deployment_version(extract_path)
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)
print(
FAIL + "Your current version is very old. Please first upgrade to version "
"1.4.3 and then upgrade to {}.".format(new_version) + ENDC
)
shutil.rmtree(extract_path)
sys.exit(1)
shutil.move(glob.glob(os.path.join(extract_path, "zulip-server-*"))[0], deploy_path)
os.rmdir(extract_path)
overwrite_symlink("/etc/zulip/settings.py",
os.path.join(deploy_path, "zproject/prod_settings.py"))
overwrite_symlink("/etc/zulip/settings.py", os.path.join(deploy_path, "zproject/prod_settings.py"))
overwrite_symlink(deploy_path, os.path.join(DEPLOYMENTS_DIR, "next"))
print(deploy_path)