[issue16013] small csv reader bug

2012-10-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed ___ Python tracker ___

[issue16013] small csv reader bug

2012-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f0465d0e91e by Senthil Kumaran in branch '2.7': 2.7 : Issue #16013: Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka. http://hg.python.org/cpython/rev/5f0465d0e91e -- ___

[issue16013] small csv reader bug

2012-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9c005676d6e by Senthil Kumaran in branch '3.2': Issue #16013: Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka. http://hg.python.org/cpython/rev/e9c005676d6e New changeset 25f0756deeae by Senthil Kumaran in bran

[issue16013] small csv reader bug

2012-09-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch looks good and is doing the right thing, that is, when the, strict mode is passed, it fails and without strict mode, it is printing the parsed list. -- nosy: +orsenthil ___ Python tracker

[issue16013] small csv reader bug

2012-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a test. -- Added file: http://bugs.python.org/file27290/csv_eof_test.patch ___ Python tracker ___

[issue16013] small csv reader bug

2012-09-24 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +needs review stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue16013] small csv reader bug

2012-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file27284/csv_eof-3.2.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue16013] small csv reader bug

2012-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. >>> list(csv.reader(['foo,"'])) [['foo', '']] >>> list(csv.reader(['foo,"'], strict=1)) Traceback (most recent call last): File "", line 1, in _csv.Error: unexpected end of data >>> list(csv.reader(['foo,^'], escapechar='^')) [['foo', '\n']

[issue16013] small csv reader bug

2012-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: A shorter example: >>> import csv >>> list(csv.reader(['foo,"'])) [] -- nosy: +storchaka type: -> behavior versions: +Python 3.2 ___ Python tracker

[issue16013] small csv reader bug

2012-09-24 Thread Armin Rigo
New submission from Armin Rigo: A small bug of cvs.reader(): >>> list(csv.reader(['foo:"'], delimiter=':', quotechar='"')) [] Adding strict=True doesn't change anything. This is caused by the opening quote not followed by anything, which causes the error to be silently ignored and the last l