summaryrefslogtreecommitdiffstats
path: root/Lib/csv.py
diff options
context:
space:
mode:
authorAndrew McNamara <andrewm@object-craft.com.au>2005-01-07 04:42:45 (GMT)
committerAndrew McNamara <andrewm@object-craft.com.au>2005-01-07 04:42:45 (GMT)
commit1196cf185ca4e5a74edc65f4b1e46cb60ff645a3 (patch)
tree678a7acd5ad8e24ffe2755ec432ad775e0e225fd /Lib/csv.py
parent72b83c86a9c992bc7635dbeaa08bfa95ec033236 (diff)
downloadcpython-1196cf185ca4e5a74edc65f4b1e46cb60ff645a3.zip
cpython-1196cf185ca4e5a74edc65f4b1e46cb60ff645a3.tar.gz
cpython-1196cf185ca4e5a74edc65f4b1e46cb60ff645a3.tar.bz2
Improved the implementation of the internal "dialect" type. The new
implementation features better error reporting, and better compliance with the PEP.
Diffstat (limited to 'Lib/csv.py')
-rw-r--r--Lib/csv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/csv.py b/Lib/csv.py
index 78b6759..d08a86b 100644
--- a/Lib/csv.py
+++ b/Lib/csv.py
@@ -68,7 +68,7 @@ class Dialect:
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):