Skip to content
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
  • Loading branch information
encukou and hugovk authored Sep 5, 2024
commit 8995b8b7707e78c31d806691025aa36656db7d47
4 changes: 2 additions & 2 deletions update_version_next.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
parser.add_argument(
"directory",
type=Path,
nargs="?",
help="Directory to process",
)
parser.add_argument(
Expand Down Expand Up @@ -77,8 +76,9 @@ def main(argv: list[str]) -> None:
raise
if num_changed_lines:
if args.verbose:
s = "" if num_changed_lines == 1 else "s"
print(
f"Updating file {path} ({num_changed_lines} changes)",
f"Updating file {path} ({num_changed_lines} change{s})",
file=sys.stderr,
)
with open(path, "w", encoding="utf-8") as file:
Expand Down