[issue37709] CSVReader ignores dialect.lineterminator

2019-07-29 Thread Benjamin Schollnick
New submission from Benjamin Schollnick : I've run into a situation where the CSV input file is very unusual. The Delimiter is "\x06" and the lineterminator is "\x07". While I've written code to work around this, it would be significantly nicer if the CSV Reade

[issue37709] CSVReader ignores dialect.lineterminator

2019-07-30 Thread Benjamin Schollnick
Benjamin Schollnick added the comment: This is tested under python 3... filename = "csv_Sample.csv" from csv import DictReader datafile = open(filename, 'r') data = csv.DictReader(datafile, lineterminator = '\x07', delimiter='\x06') print(next(data))