We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0bd358 commit ebb5be4Copy full SHA for ebb5be4
1 file changed
Lib/csv.py
@@ -264,9 +264,8 @@ class dialect(Dialect):
264
dialect.quotechar = quotechar or '"'
265
dialect.skipinitialspace = skipinitialspace
266
267
- # A guess can be inconsistent (for example delimiter == quotechar).
268
- # Building a reader validates it; re-raise the _csv ValueError as a
269
- # csv.Error so callers see the module's own exception type.
+ # A guessed dialect can be inconsistent (delimiter == quotechar);
+ # surface it as csv.Error, not a raw _csv ValueError.
270
try:
271
reader(StringIO(), dialect)
272
except ValueError as e:
0 commit comments