summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorAndrew McNamara <andrewm@object-craft.com.au>2005-01-12 11:39:50 +0000
committerAndrew McNamara <andrewm@object-craft.com.au>2005-01-12 11:39:50 +0000
commit9d2bd32abe2f09f8f2889f268455f8e3443d8040 (patch)
treedfc31da3ac61b07e636cbd735cce28c37d3426f0 /Modules
parente92805c871c3c9e63960737731af9e3bdb43494e (diff)
downloadcpython-9d2bd32abe2f09f8f2889f268455f8e3443d8040.tar.gz
Improve wording of parser error message.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_csv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c
index ce4c73819d..8547d3c03b 100644
--- a/Modules/_csv.c
+++ b/Modules/_csv.c
@@ -717,7 +717,7 @@ parse_process_char(ReaderObj *self, char c)
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 @@ csv_writer(PyObject *module, PyObject *args, PyObject *keyword_args)
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;
}