From cb0af148d82333167df948dafe289cbcf7fbd0e3 Mon Sep 17 00:00:00 2001 From: Celelibi Date: Fri, 19 Jun 2020 04:00:18 +0200 Subject: [PATCH] IRCNetwork: Unused attribute _selector_key Was always None because the called function doesn't return a value. Signed-off-by: Celelibi --- classes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes.py b/classes.py index 58db794..c8e6a7d 100644 --- a/classes.py +++ b/classes.py @@ -1723,7 +1723,6 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils): self._queue = None self._ping_timer = None self._socket = None - self._selector_key = None self._buffer = bytearray() self._reconnect_thread = None self._queue_thread = None @@ -1908,7 +1907,7 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils): # Make sure future reads never block, since select doesn't always guarantee this. self._socket.setblocking(False) - self._selector_key = selectdriver.register(self) + selectdriver.register(self) if self.ssl: self._verify_ssl()