summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-06-12 04:05:00 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-06-12 04:05:00 (GMT)
commitf31cb0cbcfa509628d2e15ee3eb891dfbaa5561e (patch)
tree5dc268ffb78f127a0c3d63951c6e4c5114a78367
parentd78b23025c9c9f6288e14112411d83f44bcf85a8 (diff)
downloadcpython-f31cb0cbcfa509628d2e15ee3eb891dfbaa5561e.zip
cpython-f31cb0cbcfa509628d2e15ee3eb891dfbaa5561e.tar.gz
cpython-f31cb0cbcfa509628d2e15ee3eb891dfbaa5561e.tar.bz2
One more multiple exception catch should be in a tuple.
-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