From b3cda98dd19062aa2cd267f08e7a3334aaaae9fb Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 7 Feb 2010 12:19:43 +0000 Subject: [PATCH] Fix wrong usage of "except X, Y:". --- Lib/test/test_optparse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py index e9149d965ba..d3ed61f6792 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))