From: Raymond Hettinger Date: Thu, 12 Jun 2003 04:05:00 +0000 (+0000) Subject: One more multiple exception catch should be in a tuple. X-Git-Tag: v2.3c1~480 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f31cb0cbcfa509628d2e15ee3eb891dfbaa5561e;p=thirdparty%2FPython%2Fcpython.git One more multiple exception catch should be in a tuple. --- diff --git a/Lib/csv.py b/Lib/csv.py index 740efd5fb43b..37b9e16c31aa 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