Skip to content

Commit 712d393

Browse files
committed
fix: Avoid CRLF on win32
c8f3056, #653
1 parent f1de40a commit 712d393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/income.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def process_state_records(census_data: CensusResponse) -> list[StateIncome]:
211211

212212
def write_json(data: list[StateIncome], output: Path) -> None:
213213
"""Writes data to JSON file."""
214-
output.write_text(json.dumps(data, indent=2), encoding="utf-8")
214+
output.write_text(json.dumps(data, indent=2), encoding="utf-8", newline="\n")
215215

216216

217217
def main() -> None:

0 commit comments

Comments
 (0)