[Python-checkins] python/dist/src/Lib getopt.py,1.23,1.24
akuchling@users.sourceforge.net
akuchling@users.sourceforge.net
Thu, 06 Feb 2003 11:52:59 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv15856
Modified Files:
getopt.py
Log Message:
A few naughty external scripts do 'raise getopt.error, "blah"', and
now crash because two arguments are expected. Add a default value
to keep those scripts running.
Index: getopt.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/getopt.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** getopt.py 4 Aug 2002 17:22:59 -0000 1.23
--- getopt.py 6 Feb 2003 19:52:56 -0000 1.24
***************
*** 40,44 ****
opt = ''
msg = ''
! def __init__(self, msg, opt):
self.msg = msg
self.opt = opt
--- 40,44 ----
opt = ''
msg = ''
! def __init__(self, msg, opt=''):
self.msg = msg
self.opt = opt