Use super on an old style class
This commit is contained in:
parent
3fb0b8fd8e
commit
a2f74c2f70
@ -78,7 +78,7 @@ def WrapTwistedOptions(wrapped):
|
|||||||
self._absorbParameters()
|
self._absorbParameters()
|
||||||
self._absorbHandlers()
|
self._absorbHandlers()
|
||||||
|
|
||||||
super(TwistedOptionsToFlags, self).__init__()
|
wrapped.__init__(self)
|
||||||
|
|
||||||
def _absorbFlags(self):
|
def _absorbFlags(self):
|
||||||
twistd_flags = []
|
twistd_flags = []
|
||||||
@ -163,12 +163,12 @@ def WrapTwistedOptions(wrapped):
|
|||||||
def parseArgs(self, *args):
|
def parseArgs(self, *args):
|
||||||
# TODO(termie): figure out a decent way of dealing with args
|
# TODO(termie): figure out a decent way of dealing with args
|
||||||
#return
|
#return
|
||||||
super(TwistedOptionsToFlags, self).parseArgs(*args)
|
wrapped.parseArgs(self, *args)
|
||||||
|
|
||||||
def postOptions(self):
|
def postOptions(self):
|
||||||
self._doHandlers()
|
self._doHandlers()
|
||||||
|
|
||||||
super(TwistedOptionsToFlags, self).postOptions()
|
wrapped.postOptions(self)
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
key = key.replace('-', '_')
|
key = key.replace('-', '_')
|
||||||
|
Loading…
Reference in New Issue
Block a user