fix whitespace error

This commit is contained in:
topquark12 2022-06-06 15:25:37 +08:00 committed by atse
parent 2796400d47
commit e71453750c

View File

@ -32,7 +32,7 @@ class Client:
return line
def _command(self, *command):
self._socket.sendall((" ".join(command) + "\n").encode('utf-8'))
self._socket.sendall(((" ".join(command)).strip() + "\n").encode('utf-8'))
line = self._read_line()
response = json.loads(line)