diff options
| author | Andrew McNamara <andrewm@object-craft.com.au> | 2005-01-12 08:16:17 +0000 |
|---|---|---|
| committer | Andrew McNamara <andrewm@object-craft.com.au> | 2005-01-12 08:16:17 +0000 |
| commit | ca9a517a242ac2e17dba6ad5642e906e7e2579e1 (patch) | |
| tree | 387f5257997d61f7d2e330bdc233d182421e022b /Modules/_csv.c | |
| parent | b5883033b48d4cf19446ce4f33baa7368edd96b0 (diff) | |
| download | cpython-ca9a517a242ac2e17dba6ad5642e906e7e2579e1.tar.gz | |
Fix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test.
Diffstat (limited to 'Modules/_csv.c')
| -rw-r--r-- | Modules/_csv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c index 30b7eca409..c592933cb4 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -401,7 +401,7 @@ dialect_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) 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, |
