[Python-checkins] r78076 - python/trunk/Lib/test/test_optparse.py

georg.brandl python-checkins at python.org
Sun Feb 7 13:19:44 CET 2010


Author: georg.brandl
Date: Sun Feb  7 13:19:43 2010
New Revision: 78076

Log:
Fix wrong usage of "except X, Y:".

Modified:
   python/trunk/Lib/test/test_optparse.py

Modified: python/trunk/Lib/test/test_optparse.py
==============================================================================
--- python/trunk/Lib/test/test_optparse.py	(original)
+++ python/trunk/Lib/test/test_optparse.py	Sun Feb  7 13:19:43 2010
@@ -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))
 


More information about the Python-checkins mailing list