diff options
author | Andrew McNamara <andrewm@object-craft.com.au> | 2005-01-07 04:42:45 +0000 |
---|---|---|
committer | Andrew McNamara <andrewm@object-craft.com.au> | 2005-01-07 04:42:45 +0000 |
commit | dca494997c9b49f97d4d8bf30fe25f096744e95e (patch) | |
tree | e8c36295d7e65ed64d996855f19b5edf036f359d /Lib/csv.py | |
parent | a6fe31ae794e5125ebfb8858b86e288a53c01a06 (diff) | |
download | cpython-dca494997c9b49f97d4d8bf30fe25f096744e95e.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.py | 2 |
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): |