From abe14e6f04de7acf72efedf0e59852dcb4389e58 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 12 Jun 2003 03:59:17 +0000 Subject: The multiple exception catch should be in a tuple. --- Lib/csv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/csv.py b/Lib/csv.py index 8511502..740efd5 100644 --- a/Lib/csv.py +++ b/Lib/csv.py @@ -389,7 +389,7 @@ class Sniffer: try: thisType(row[col]) break - except ValueError, OverflowError: + except (ValueError, OverflowError): pass else: # fallback to length of string -- cgit v0.12