[Python-checkins] python/dist/src/Modules _csv.c,1.31,1.32
andrewmcnamara at users.sourceforge.net
andrewmcnamara at users.sourceforge.net
Wed Jan 12 09:16:21 CET 2005
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25379/Modules
Modified Files:
_csv.c
Log Message:
Fix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test.
Index: _csv.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_csv.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- _csv.c 12 Jan 2005 07:44:41 -0000 1.31
+++ _csv.c 12 Jan 2005 08:16:06 -0000 1.32
@@ -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,
More information about the Python-checkins
mailing list