commit | b3cda98dd19062aa2cd267f08e7a3334aaaae9fb | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sun Feb 07 12:19:43 2010 +0000 |
committer | Georg Brandl <georg@python.org> | Sun Feb 07 12:19:43 2010 +0000 |
tree | 0598ec690d348b1e35645fff6928855ca7454924 | |
parent | 7ae6018788ce3c5bafc5bde974ebd425adcf410c [diff] |
Fix wrong usage of "except X, Y:".
diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py index e9149d9..d3ed61f 100644 --- a/Lib/test/test_optparse.py +++ b/Lib/test/test_optparse.py
@@ -453,7 +453,7 @@ 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))