From 96ac23a6eb29ff4994715ccd1e91f653905f2e39 Mon Sep 17 00:00:00 2001 From: A_D Date: Thu, 28 Jan 2021 18:16:06 +0200 Subject: [PATCH] Made sure to use super() call Assuming you know what your super is is a bad idea --- protocol.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/protocol.py b/protocol.py index fc4fc4c6..7e1ad6da 100644 --- a/protocol.py +++ b/protocol.py @@ -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()