Update of /cvsroot/python/python/dist/src/Lib In directory usw-pr-cvs1:/tmp/cvs-serv18643 Modified Files: getopt.py Log Message: GetoptError is always initialized with exactly two parameters, so simplify the constructor. Index: getopt.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/getopt.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** getopt.py 2000/12/29 02:17:56 1.13 --- getopt.py 2001/01/08 15:39:32 1.14 *************** *** 21,31 **** opt = '' msg = '' ! def __init__(self, *args): ! self.args = args ! if len(args) == 1: ! self.msg = args[0] ! elif len(args) == 2: ! self.msg = args[0] ! self.opt = args[1] def __str__(self): --- 21,28 ---- opt = '' msg = '' ! def __init__(self, msg, opt): ! self.msg = msg ! self.opt = opt ! Exception.__init__(self, msg, opt) def __str__(self):
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4