From 10ab951a4da302dfb99f823f0487da7791972806 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 5 Dec 2024 22:09:10 -0500 Subject: [PATCH] Rename _read_response() to response_read() --- lib/nntp/tiny/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nntp/tiny/client.py b/lib/nntp/tiny/client.py index 3730e31..23149f8 100644 --- a/lib/nntp/tiny/client.py +++ b/lib/nntp/tiny/client.py @@ -34,7 +34,7 @@ class ClientEOFException(ClientException): class Client(Connection): RE_SPLIT = re.compile(r'\s+') - def _read_response(self): + def response_read(self): line = self.readline() if line == '': @@ -67,7 +67,7 @@ class Client(Connection): super().__init__(sock) - response = self._read_response() + response = self.response_read() if response is None: raise ClientException('Server not ready') @@ -75,7 +75,7 @@ class Client(Connection): def request(self, *args): self.print(' '.join(args)) - response = self._read_response() + response = self.response_read() if response.code.value >= 400: raise RemoteException(response)