Skip to content

Commit

Permalink
bpo-40876: Clarify error message in the csv module (pythonGH-20653)
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-RR authored Jun 5, 2020
1 parent 161541a commit 235f918
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify error message in the :mod:`csv` module.
2 changes: 1 addition & 1 deletion Modules/_csv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 235f918

Please sign in to comment.