Rename _read_response() to response_read()
This commit is contained in:
parent
9944719792
commit
10ab951a4d
1 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ class ClientEOFException(ClientException):
|
||||||
class Client(Connection):
|
class Client(Connection):
|
||||||
RE_SPLIT = re.compile(r'\s+')
|
RE_SPLIT = re.compile(r'\s+')
|
||||||
|
|
||||||
def _read_response(self):
|
def response_read(self):
|
||||||
line = self.readline()
|
line = self.readline()
|
||||||
|
|
||||||
if line == '':
|
if line == '':
|
||||||
|
@ -67,7 +67,7 @@ class Client(Connection):
|
||||||
|
|
||||||
super().__init__(sock)
|
super().__init__(sock)
|
||||||
|
|
||||||
response = self._read_response()
|
response = self.response_read()
|
||||||
|
|
||||||
if response is None:
|
if response is None:
|
||||||
raise ClientException('Server not ready')
|
raise ClientException('Server not ready')
|
||||||
|
@ -75,7 +75,7 @@ class Client(Connection):
|
||||||
def request(self, *args):
|
def request(self, *args):
|
||||||
self.print(' '.join(args))
|
self.print(' '.join(args))
|
||||||
|
|
||||||
response = self._read_response()
|
response = self.response_read()
|
||||||
|
|
||||||
if response.code.value >= 400:
|
if response.code.value >= 400:
|
||||||
raise RemoteException(response)
|
raise RemoteException(response)
|
||||||
|
|
Loading…
Add table
Reference in a new issue