Improved the implementation of the internal "dialect" type. The new
implementation features better error reporting, and better compliance
with the PEP.
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 @@
         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):