Kaydet (Commit) 1c280ab7 authored tarafından Georg Brandl's avatar Georg Brandl

Rewrap error message.

üst 8b2b8dbe
...@@ -794,9 +794,10 @@ Reader_iternext(ReaderObj *self) ...@@ -794,9 +794,10 @@ Reader_iternext(ReaderObj *self)
return NULL; return NULL;
} }
if (!PyUnicode_Check(lineobj)) { if (!PyUnicode_Check(lineobj)) {
PyErr_Format(error_obj, "iterator should return " PyErr_Format(error_obj,
"strings, not %.200s (did you open " "iterator should return strings, "
"the file in text mode?)", "not %.200s "
"(did you open the file in text mode?)",
lineobj->ob_type->tp_name lineobj->ob_type->tp_name
); );
Py_DECREF(lineobj); Py_DECREF(lineobj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment