From b49b4b166103aeefd72cc786fd9b5f96c34c0c5b Mon Sep 17 00:00:00 2001 From: Malte Juergens Date: Thu, 19 Sep 2024 17:42:01 +0200 Subject: [PATCH] Fix syntax error in old python version --- scripts/librewolf-patches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/librewolf-patches.py b/scripts/librewolf-patches.py index ffd2c5d..ce0614a 100755 --- a/scripts/librewolf-patches.py +++ b/scripts/librewolf-patches.py @@ -174,7 +174,7 @@ def librewolf_patches(): target_path = target_path.with_name(target_path.name.replace(".inc", "")) write_mode = "a" - print(f"{source_path} {">" if write_mode == "w" else ">>"} {target_path}") + print(f"{source_path} {'>' if write_mode == 'w' else '>>'} {target_path}") with open(target_path, write_mode) as target_file: with open(source_path, "r") as source_file: