summaryrefslogtreecommitdiffstats
path: root/Lib/csv.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/csv.py')
-rw-r--r--Lib/csv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/csv.py b/Lib/csv.py
index a079279..75e35b2 100644
--- a/Lib/csv.py
+++ b/Lib/csv.py
@@ -113,8 +113,8 @@ class Dialect:
try:
_Dialect(self)
except TypeError as e:
- # We do this for compatibility with py2.3
- raise Error(str(e))
+ # Re-raise to get a traceback showing more user code.
+ raise Error(str(e)) from None
class excel(Dialect):
"""Describe the usual properties of Excel-generated CSV files."""