summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_optparse.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-02-07 12:19:43 (GMT)
committerGeorg Brandl <georg@python.org>2010-02-07 12:19:43 (GMT)
commitb3cda98dd19062aa2cd267f08e7a3334aaaae9fb (patch)
tree0598ec690d348b1e35645fff6928855ca7454924 /Lib/test/test_optparse.py
parent7ae6018788ce3c5bafc5bde974ebd425adcf410c (diff)
downloadcpython-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.py2
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))