Use super() call

This commit is contained in:
noisyfox 2017-01-07 20:03:20 +11:00
parent 8777152ec9
commit 6d53546f6e
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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):