Skip to content

Commit

Permalink
Add comment explaining motivation for the compatibility shim.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 28, 2024
1 parent 526e834 commit 8b821dc
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 @@ -15,7 +15,7 @@


if sys.version_info < (3, 10):

# Compatibility shim for newline parameter to write_text, added in 3.10
def _newline_write_text(path: Path, content: str, **kwargs: Any) -> None:
with path.open("w", **kwargs) as strm: # pragma: no branch
strm.write(content)
Expand Down

0 comments on commit 8b821dc

Please sign in to comment.