Made sure to use super() call

Assuming you know what your super is is a bad idea
This commit is contained in:
A_D authored and Athanasius committed 2021-04-01 14:45:49 +01:00
1 parent 1b0b482105
commit 96ac23a6eb
1 file changed
+3 -3
+3 -3
View File
@@ -203,12 +203,12 @@ elif sys.platform == 'win32' and getattr(sys, 'frozen', False) and not is_wine a
"""
def __init__(self):
GenericProtocolHandler.__init__(self)
self.thread = None
super().__init__()
self.thread: Optional[threading.Thread] = None
def start(self, master):
"""Start the DDE thread."""
GenericProtocolHandler.start(self, master)
super().start(master)
self.thread = threading.Thread(target=self.worker, name='DDE worker')
self.thread.daemon = True
self.thread.start()