Skip to content

Commit

Permalink
Preserve line break codes (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajisaka committed Jul 25, 2024
1 parent 5e4a43b commit 253e91d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bump_pydantic/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def run_codemods(
context.scratch.update(scratch)

file_path = Path(filename)
with file_path.open("r+", encoding="utf-8") as fp:
with file_path.open("r+", encoding="utf-8", newline="") as fp:
code = fp.read()
fp.seek(0)

Expand Down

0 comments on commit 253e91d

Please sign in to comment.