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)