[Python-checkins] python/dist/src/Modules _csv.c,1.34,1.35
andrewmcnamara at users.sourceforge.net
andrewmcnamara at users.sourceforge.net
Wed Jan 12 12:39:54 CET 2005
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32713/Modules
Modified Files:
_csv.c
Log Message:
Improve wording of parser error message.
Index: _csv.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_csv.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- _csv.c 12 Jan 2005 11:17:14 -0000 1.34
+++ _csv.c 12 Jan 2005 11:39:50 -0000 1.35
@@ -717,7 +717,7 @@
else {
/* illegal */
self->had_parse_error = 1;
- PyErr_Format(error_obj, "%c expected after %c",
+ PyErr_Format(error_obj, "'%c' expected after '%c'",
dialect->delimiter,
dialect->quotechar);
return -1;
@@ -1354,7 +1354,7 @@
self->writeline = PyObject_GetAttrString(output_file, "write");
if (self->writeline == NULL || !PyCallable_Check(self->writeline)) {
PyErr_SetString(PyExc_TypeError,
- "argument 1 must be an instance with a write method");
+ "argument 1 must have a \"write\" method");
Py_DECREF(self);
return NULL;
}
More information about the Python-checkins
mailing list