summaryrefslogtreecommitdiff
path: root/Lib/csv.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-06-12 04:05:00 +0000
committerRaymond Hettinger <python@rcn.com>2003-06-12 04:05:00 +0000
commitf14abc614ba507ca716259d06c5bded2e4e89e84 (patch)
tree93a89cabdffe5c9d1d62b8643ab90543f52e06db /Lib/csv.py
parent6e48446fc5f109a03d13fd7a1a832c37c70da32d (diff)
downloadcpython-f14abc614ba507ca716259d06c5bded2e4e89e84.tar.gz
One more multiple exception catch should be in a tuple.
Diffstat (limited to 'Lib/csv.py')
-rw-r--r--Lib/csv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/csv.py b/Lib/csv.py
index 740efd5fb4..37b9e16c31 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