Use super() call
This commit is contained in:
parent
8777152ec9
commit
6d53546f6e
2 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ from configloader import load_config, get_config
|
||||||
|
|
||||||
class MainThread(threading.Thread):
|
class MainThread(threading.Thread):
|
||||||
def __init__(self, obj):
|
def __init__(self, obj):
|
||||||
threading.Thread.__init__(self)
|
super(MainThread, self).__init__()
|
||||||
self.daemon = True
|
self.daemon = True
|
||||||
self.obj = obj
|
self.obj = obj
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ from configloader import load_config, get_config
|
||||||
|
|
||||||
class MainThread(threading.Thread):
|
class MainThread(threading.Thread):
|
||||||
def __init__(self, params):
|
def __init__(self, params):
|
||||||
threading.Thread.__init__(self)
|
super(MainThread, self).__init__()
|
||||||
self.params = params
|
self.params = params
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue