From 1c280ab7d62b4ae420964b655d99a8e4186320b3 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 27 Nov 2007 20:40:22 +0000 Subject: Rewrap error message. --- Modules/_csv.c | 7 ++++--- 1 file 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); -- cgit v0.12