Skip to content

Commit

Permalink
Use 'utf-8' for consistency with other modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 28, 2024
1 parent e1caa2c commit c484029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/towncrier/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def append_to_newsfile(
# Leave newlines alone. This probably leads to inconsistent newlines,
# because we've loaded existing content with universal newlines, but that's
# the original behavior.
with news_file.open("w", encoding="utf8", newline="") as f:
with news_file.open("w", encoding="utf-8", newline="") as f:
if header:
f.write(header)
# If there is no previous body that means we're writing a brand new news file.
Expand Down

0 comments on commit c484029

Please sign in to comment.