[Python-checkins] r54027 - python/branches/p3yk_no_args_on_exc/Lib/getopt.py

brett.cannon python-checkins at python.org
Wed Feb 28 19:31:05 CET 2007


Author: brett.cannon
Date: Wed Feb 28 19:31:02 2007
New Revision: 54027

Modified:
   python/branches/p3yk_no_args_on_exc/Lib/getopt.py
Log:
Fix getopt for BaseException.args removal.


Modified: python/branches/p3yk_no_args_on_exc/Lib/getopt.py
==============================================================================
--- python/branches/p3yk_no_args_on_exc/Lib/getopt.py	(original)
+++ python/branches/p3yk_no_args_on_exc/Lib/getopt.py	Wed Feb 28 19:31:02 2007
@@ -42,7 +42,7 @@
     def __init__(self, msg, opt=''):
         self.msg = msg
         self.opt = opt
-        Exception.__init__(self, msg, opt)
+        Exception.__init__(self, (msg, opt))
 
     def __str__(self):
         return self.msg


More information about the Python-checkins mailing list