summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_csv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c
index afa7810..596d5c2 100644
--- a/Modules/_csv.c
+++ b/Modules/_csv.c
@@ -794,9 +794,10 @@ Reader_iternext(ReaderObj *self)
return NULL;
}
if (!PyUnicode_Check(lineobj)) {
- PyErr_Format(error_obj, "iterator should return "
- "strings, not %.200s (did you open "
- "the file in text mode?)",
+ PyErr_Format(error_obj,
+ "iterator should return strings, "
+ "not %.200s "
+ "(did you open the file in text mode?)",
lineobj->ob_type->tp_name
);
Py_DECREF(lineobj);