Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2a0a83 commit e1fd526Copy full SHA for e1fd526
1 file changed
Lib/getopt.py
@@ -20,13 +20,10 @@
20
class GetoptError(Exception):
21
opt = ''
22
msg = ''
23
- def __init__(self, *args):
24
- self.args = args
25
- if len(args) == 1:
26
- self.msg = args[0]
27
- elif len(args) == 2:
28
29
- self.opt = args[1]
+ def __init__(self, msg, opt):
+ self.msg = msg
+ self.opt = opt
+ Exception.__init__(self, msg, opt)
30
31
def __str__(self):
32
return self.msg
0 commit comments