mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-40876: Clarify error message in the csv module (GH-20653)
This commit is contained in:
parent
161541ab45
commit
235f918f44
2 changed files with 2 additions and 1 deletions
|
@ -810,7 +810,7 @@ Reader_iternext(ReaderObj *self)
|
|||
PyErr_Format(_csvstate_global->error_obj,
|
||||
"iterator should return strings, "
|
||||
"not %.200s "
|
||||
"(did you open the file in text mode?)",
|
||||
"(the file should be opened in text mode)",
|
||||
Py_TYPE(lineobj)->tp_name
|
||||
);
|
||||
Py_DECREF(lineobj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue