print(f"[ERROR] “{old}” not found and has no update.")
exit_code |= ExitCode.MISSING_UPDATES
if exit_code:
- print(f"[ERROR] Processing interrupted: please fix the errors above.")
+ print("[ERROR] Processing interrupted: please fix the errors above.")
exit(exit_code.value)
# Write changes
with registry_path.open("wt", encoding="utf-8") as fd:
fd.write(f"# WARNING: This file is autogenerated by: {RELATIVE_SCRIPT_PATH}\n")
- fd.write(f"# Do not edit manually.\n")
+ fd.write("# Do not edit manually.\n")
yaml.dump(
registry,
fd,
cool = False
print(
f"ERROR: missing canonical documentation page “{canonical}”. "
- f"Please update “{registry_path}” using b{RELATIVE_SCRIPT_PATH}”."
+ f"Please update “{registry_path}” using {RELATIVE_SCRIPT_PATH}”."
)
# Add a redirection page
for alias in aliases: