Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_optparse.py @ 58800:5694444fd5d2 legacy-trunk
Fix wrong usage of "except X, Y:".
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sun, 07 Feb 2010 12:19:43 +0000 |
| parents | ff040880d1be |
| children | 70e115c34f97 |
line wrap: on
line diff
--- a/Lib/test/test_optparse.py Sun Feb 07 12:16:12 2010 +0000 +++ b/Lib/test/test_optparse.py Sun Feb 07 12:19:43 2010 +0000 @@ -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))
