summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/csv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/csv.py b/Lib/csv.py
index 740efd5..37b9e16 100644
--- a/Lib/csv.py
+++ b/Lib/csv.py
@@ -419,7 +419,7 @@ class Sniffer:
else: # attempt typecast
try:
colType(header[col])
- except ValueError, TypeError:
+ except (ValueError, TypeError):
hasHeader += 1
else:
hasHeader -= 1