diff options
author | Andrew McNamara <andrewm@object-craft.com.au> | 2005-01-12 11:39:50 +0000 |
---|---|---|
committer | Andrew McNamara <andrewm@object-craft.com.au> | 2005-01-12 11:39:50 +0000 |
commit | 9d2bd32abe2f09f8f2889f268455f8e3443d8040 (patch) | |
tree | dfc31da3ac61b07e636cbd735cce28c37d3426f0 /Modules | |
parent | e92805c871c3c9e63960737731af9e3bdb43494e (diff) | |
download | cpython-9d2bd32abe2f09f8f2889f268455f8e3443d8040.tar.gz |
Improve wording of parser error message.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_csv.c | 4 |
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; } |