[Python-checkins] python/dist/src/Lib csv.py,1.11,1.12

andrewmcnamara at users.sourceforge.net andrewmcnamara at users.sourceforge.net
Fri Jan 7 05:42:48 CET 2005

Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25171/Lib

Modified Files:
Log Message:
Improved the implementation of the internal "dialect" type. The new
implementation features better error reporting, and better compliance
with the PEP.

Index: csv.py
RCS file: /cvsroot/python/python/dist/src/Lib/csv.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- csv.py	5 Jan 2005 06:54:58 -0000	1.11
+++ csv.py	7 Jan 2005 04:42:45 -0000	1.12
@@ -68,7 +68,7 @@
         elif not isinstance(self.lineterminator, str):
             errors.append("lineterminator must be a string")
-        if self.doublequote not in (True, False):
+        if self.doublequote not in (True, False) and self.quoting != QUOTE_NONE:
             errors.append("doublequote parameter must be True or False")
         if self.skipinitialspace not in (True, False):

More information about the Python-checkins mailing list