Mercurial > cpython-lru_cache-weakref
diff Modules/_csv.c @ 44032:8f92b4ee6fc4
Rewrap error message.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Tue, 27 Nov 2007 20:40:22 +0000 |
| parents | 7b30111247f6 |
| children | 4c39029e3fb0 |
line wrap: on
line diff
--- a/Modules/_csv.c Tue Nov 27 13:09:25 2007 +0000 +++ b/Modules/_csv.c Tue Nov 27 20:40:22 2007 +0000 @@ -794,9 +794,10 @@ 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);
