]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Rewrap error message.
authorGeorg Brandl <georg@python.org>
Tue, 27 Nov 2007 20:40:22 +0000 (20:40 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 27 Nov 2007 20:40:22 +0000 (20:40 +0000)
Modules/_csv.c

index afa7810b566b02d0c5802186635645c39e3475e5..596d5c2c01fd00bbd8b7730313f1ac91e34d6fbe 100644 (file)
@@ -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);