]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
The multiple exception catch should be in a tuple.
authorRaymond Hettinger <python@rcn.com>
Thu, 12 Jun 2003 03:59:17 +0000 (03:59 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 12 Jun 2003 03:59:17 +0000 (03:59 +0000)
Lib/csv.py

index 851150218fcbff7c1fa830cf04f1eb9061a43e53..740efd5fb43b9628b374c6d6c5f099c092d50da3 100644 (file)
@@ -389,7 +389,7 @@ class Sniffer:
                     try:
                         thisType(row[col])
                         break
-                    except ValueError, OverflowError:
+                    except (ValueError, OverflowError):
                         pass
                 else:
                     # fallback to length of string