diff Lib/csv.py @ 29420:f87fcd0870bf legacy-trunk

The multiple exception catch should be in a tuple.
author Raymond Hettinger <python@rcn.com>
date Thu, 12 Jun 2003 03:59:17 +0000
parents bac2c0e7c20a
children cf8ae3b0dcdc
line wrap: on
line diff
--- a/Lib/csv.py	Thu Jun 12 03:57:23 2003 +0000
+++ b/Lib/csv.py	Thu Jun 12 03:59:17 2003 +0000
@@ -389,7 +389,7 @@
                     try:
                         thisType(row[col])
                         break
-                    except ValueError, OverflowError:
+                    except (ValueError, OverflowError):
                         pass
                 else:
                     # fallback to length of string