From f14abc614ba507ca716259d06c5bded2e4e89e84 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 12 Jun 2003 04:05:00 +0000 Subject: One more multiple exception catch should be in a tuple. --- Lib/csv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/csv.py') diff --git a/Lib/csv.py b/Lib/csv.py index 740efd5fb4..37b9e16c31 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 -- cgit v1.2.1