diff options
author | Georg Brandl <georg@python.org> | 2010-02-07 12:19:43 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-02-07 12:19:43 (GMT) |
commit | b3cda98dd19062aa2cd267f08e7a3334aaaae9fb (patch) | |
tree | 0598ec690d348b1e35645fff6928855ca7454924 /Lib/test/test_optparse.py | |
parent | 7ae6018788ce3c5bafc5bde974ebd425adcf410c (diff) | |
download | cpython-b3cda98dd19062aa2cd267f08e7a3334aaaae9fb.zip cpython-b3cda98dd19062aa2cd267f08e7a3334aaaae9fb.tar.gz cpython-b3cda98dd19062aa2cd267f08e7a3334aaaae9fb.tar.bz2 |
Fix wrong usage of "except X, Y:".
Diffstat (limited to 'Lib/test/test_optparse.py')
-rw-r--r-- | Lib/test/test_optparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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)) |