[New-bugs-announce] [issue26648] csv.reader Error message indicates to use deprecated
Philip Martin
report at bugs.python.org
Sat Mar 26 20:45:05 EDT 2016
New submission from Philip Martin:
Currently, the error message:
_csv.Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode?
is cryptic in that universal line mode has been deprecated, and will not run in Python 3.5., i.e.:
open(escape_path, "rU", encoding=ENCODING)
>>> DeprecationWarning: 'U' mode is deprecated
I think a message indicating a suggestion to open the file with newline='' to enable universal line mode is more insightful.
----------
messages: 262502
nosy: Philip Martin
priority: normal
severity: normal
status: open
title: csv.reader Error message indicates to use deprecated
type: enhancement
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26648>
_______________________________________
More information about the New-bugs-announce
mailing list