Browse Source

Use super() call

dev
noisyfox 8 years ago
parent
commit
6d53546f6e
  1. 2
      server.py
  2. 2
      server_pool.py

2
server.py

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

2
server_pool.py

@ -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…
Cancel
Save