From 4afd16dfe5910fc7b54ddb7608c7b6b8313c6739 Mon Sep 17 00:00:00 2001 From: Furkan Date: Sun, 13 Oct 2024 12:28:46 +0300 Subject: [PATCH] fix: fix `DAQJobStoreCSV` adding blank lines to files --- src/daq/store/csv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daq/store/csv.py b/src/daq/store/csv.py index 0912983..089ad85 100644 --- a/src/daq/store/csv.py +++ b/src/daq/store/csv.py @@ -74,7 +74,7 @@ def _open_csv_file(self, file_path: str) -> tuple[CSVFile, bool]: Path(file_path).touch() # Open file - file = CSVFile(open(file_path, "a"), datetime.now(), deque()) + file = CSVFile(open(file_path, "a", newline=""), datetime.now(), deque()) self._open_csv_files[file_path] = file else: file_exists = True