From e7f229e4a22866c29c8d2488de6a4661c8bb3d65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Fri, 2 Feb 2018 10:36:54 +0100 Subject: [PATCH] Mark some server methods as private. --- matrix/server.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/matrix/server.py b/matrix/server.py index 7659a09..da1e274 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -207,7 +207,7 @@ class MatrixServer: return True except socket.error as error: - self.abort_send() + self._abort_send() errno = "error" + str(error.errno) + " " if error.errno else "" strerr = error.strerror if error.strerror else "Unknown reason" @@ -228,7 +228,7 @@ class MatrixServer: return False if sent == 0: - self.abort_send() + self._abort_send() server_buffer_prnt( self, @@ -243,15 +243,15 @@ class MatrixServer: total_sent = total_sent + sent - self.finalize_send() + self._finalize_send() return True - def abort_send(self): + def _abort_send(self): self.send_queue.appendleft(self.current_message) self.current_message = None self.send_buffer = "" - def finalize_send(self): + def _finalize_send(self): # type: (MatrixServer) -> None self.current_message.send_time = time.time() self.receive_queue.append(self.current_message)