Skip to content

Commit

Permalink
fix: parallel csv writer fails on win32 due to newlines (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
eegli authored Jan 15, 2025
1 parent 35cd65d commit 6326fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mblm/utils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def write_row(self, row: _TNamedTuple):

with self._lock:
file_empty = self._file_is_empty()
with self._file.open("a", encoding="utf-8") as f:
with self._file.open("a", encoding="utf-8", newline="") as f:
writer = csv.writer(f)
if file_empty:
# automatically write a header once
Expand Down

0 comments on commit 6326fd4

Please sign in to comment.