Mercurial > cpython-lru_cache-weakref
diff Modules/_csv.c @ 34408:72fd373cd0f9 legacy-trunk
Fix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test.
| author | Andrew McNamara <andrewm@object-craft.com.au> |
|---|---|
| date | Wed, 12 Jan 2005 08:16:17 +0000 |
| parents | c88ab292bf05 |
| children | 1d866c02a8ca |
line wrap: on
line diff
--- a/Modules/_csv.c Wed Jan 12 07:44:42 2005 +0000 +++ b/Modules/_csv.c Wed Jan 12 08:16:17 2005 +0000 @@ -401,7 +401,7 @@ PyErr_SetString(PyExc_TypeError, "delimiter must be set"); goto err; } - if (quotechar == Py_None && self->quoting != QUOTE_NONE) + if (quotechar == Py_None && quoting == NULL) self->quoting = QUOTE_NONE; if (self->quoting != QUOTE_NONE && self->quotechar == 0) { PyErr_SetString(PyExc_TypeError,
