summaryrefslogtreecommitdiffstats
path: root/Modules/_csv.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-11-27 20:40:22 (GMT)
committerGeorg Brandl <georg@python.org>2007-11-27 20:40:22 (GMT)
commit1c280ab7d62b4ae420964b655d99a8e4186320b3 (patch)
treec00a5ebefbf3bb892d62134bd23bceb30a3788af /Modules/_csv.c
parent8b2b8dbefa7d10620d59fd9785e2db23292c7124 (diff)
downloadcpython-1c280ab7d62b4ae420964b655d99a8e4186320b3.zip
cpython-1c280ab7d62b4ae420964b655d99a8e4186320b3.tar.gz
cpython-1c280ab7d62b4ae420964b655d99a8e4186320b3.tar.bz2
Rewrap error message.
Diffstat (limited to 'Modules/_csv.c')
-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);