From: Georg Brandl Date: Sun, 7 Feb 2010 12:19:43 +0000 (+0000) Subject: Fix wrong usage of "except X, Y:". X-Git-Tag: v2.7a4~237 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b3cda98dd19062aa2cd267f08e7a3334aaaae9fb;p=thirdparty%2FPython%2Fcpython.git Fix wrong usage of "except X, Y:". --- diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py index e9149d965ba0..d3ed61f67925 100644 --- a/Lib/test/test_optparse.py +++ b/Lib/test/test_optparse.py @@ -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))