Skip to content

Commit

Permalink
Merge pull request #2374 from midichef/csv_newline
Browse files Browse the repository at this point in the history
[csv-] use newline='' for opening files
  • Loading branch information
anjakefala committed Jul 1, 2024
2 parents 7d4b590 + f513f8b commit 90d3409
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified tests/golden/errors-311.tsv
Binary file not shown.
2 changes: 1 addition & 1 deletion visidata/loaders/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def iterload(self):
import csv
csv.field_size_limit(2**31-1) #288 Windows has max 32-bit

with self.open_text_source() as fp:
with self.open_text_source(newline='') as fp:
if options.safety_first:
rdr = csv.reader(removeNulls(fp), **options.getall('csv_'))
else:
Expand Down

0 comments on commit 90d3409

Please sign in to comment.