]> granicus.if.org Git - python/commitdiff
One more multiple exception catch should be in a tuple.
authorRaymond Hettinger <python@rcn.com>
Thu, 12 Jun 2003 04:05:00 +0000 (04:05 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 12 Jun 2003 04:05:00 +0000 (04:05 +0000)
Lib/csv.py

index 740efd5fb43b9628b374c6d6c5f099c092d50da3..37b9e16c31aa683d0e089e3053c7242934ce5285 100644 (file)
@@ -419,7 +419,7 @@ class Sniffer:
             else: # attempt typecast
                 try:
                     colType(header[col])
-                except ValueError, TypeError:
+                except (ValueError, TypeError):
                     hasHeader += 1
                 else:
                     hasHeader -= 1