summaryrefslogtreecommitdiff
path: root/Lib/csv.py
diff options
context:
space:
mode:
authorAndrew McNamara <andrewm@object-craft.com.au>2005-01-07 04:42:45 +0000
committerAndrew McNamara <andrewm@object-craft.com.au>2005-01-07 04:42:45 +0000
commit1196cf185ca4e5a74edc65f4b1e46cb60ff645a3 (patch)
tree678a7acd5ad8e24ffe2755ec432ad775e0e225fd /Lib/csv.py
parent72b83c86a9c992bc7635dbeaa08bfa95ec033236 (diff)
downloadcpython-git-1196cf185ca4e5a74edc65f4b1e46cb60ff645a3.tar.gz
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 78b675949e..d08a86b6be 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):