]> granicus.if.org Git - python/commitdiff
Fix wrong usage of "except X, Y:".
authorGeorg Brandl <georg@python.org>
Sun, 7 Feb 2010 12:19:43 +0000 (12:19 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 7 Feb 2010 12:19:43 +0000 (12:19 +0000)
Lib/test/test_optparse.py

index e9149d965ba04fc9246bdab2cf93fb96a6fabffb..d3ed61f6792541967738d4f38cb61f0d6e9ab90a 100644 (file)
@@ -453,7 +453,7 @@ def _check_duration(option, opt, value):
             return int(value)
         else:
             return int(value[:-1]) * _time_units[value[-1]]
-    except ValueError, IndexError:
+    except (ValueError, IndexError):
         raise OptionValueError(
             'option %s: invalid duration: %r' % (opt, value))