Re: csv.Sniffer: wrong detection of the end of line delimiter

2005-12-29 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Steve Holden wrote: > Laurent Laporte wrote: > >> I'm using cvs standard module under Python 2.3 / 2.4 to read a CSV >> file. The file is opened in binary mode, so I keep the end of line >> terminator. >> > It's not advisable to open a file like a CSV, intended for use as

Re: csv.Sniffer: wrong detection of the end of line delimiter

2005-12-28 Thread Steve Holden
Laurent Laporte wrote: > hello, > > I'm using cvs standard module under Python 2.3 / 2.4 to read a CSV > file. The file is opened in binary mode, so I keep the end of line > terminator. > It's not advisable to open a file like a CSV, intended for use as text, in binary mode. > It appears that t

csv.Sniffer: wrong detection of the end of line delimiter

2005-12-28 Thread Laurent Laporte
hello, I'm using cvs standard module under Python 2.3 / 2.4 to read a CSV file. The file is opened in binary mode, so I keep the end of line terminator. It appears that the csv.Sniffer force the line terminator to be '\r\n'. It's fine under Windows but wrong under Linux or Macintosh. More about