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 @@ def has_header(self, sample): else: # attempt typecast try: colType(header[col]) - except ValueError, TypeError: + except (ValueError, TypeError): hasHeader += 1 else: hasHeader -= 1