Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(41543)

Unified Diff: Lib/csv.py

Issue 18829: csv produces confusing error message when passed a non-string delimiter
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Lib/test/test_csv.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/csv.py Sun Sep 08 14:14:38 2013 +0200
+++ b/Lib/csv.py Sun Sep 08 23:01:25 2013 +0800
@@ -46,7 +46,7 @@
def _validate(self):
try:
_Dialect(self)
- except TypeError as e:
+ except (TypeError, ValueError) as e:
# We do this for compatibility with py2.3
raise Error(str(e))
« no previous file with comments | « no previous file | Lib/test/test_csv.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+