0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-21 21:23:08 -05:00

Fix syntax error in old python version

This commit is contained in:
Malte Juergens 2024-09-19 17:42:01 +02:00
parent eed271897f
commit b49b4b1661
No known key found for this signature in database

View file

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