From f31cb0cbcfa509628d2e15ee3eb891dfbaa5561e Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 12 Jun 2003 04:05:00 +0000 Subject: [PATCH] One more 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 740efd5fb43..37b9e16c31a 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