Gertjan van den Burg <gertjanvandenb...@gmail.com> added the comment:

Note that the current CSV parser in _csv.c doesn't require the line terminator, 
it eats up \r and \n where necessary. See: 

https://github.com/python/cpython/blob/fd512d76456b65c529a5bc58d8cfe73e4a10de7a/Modules/_csv.c#L752

This is why the line terminator isn't detected and doesn't need to be detected.

Also, files that use the \r line terminator exist and are parsed correctly at 
the moment. See for example: 
https://raw.githubusercontent.com/hadley/data-fuel-economy/master/1998-2008/2008.csv

----------
nosy: +Gertjan van den Burg

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue30825>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to