From e71453750c0a6ed6c83de23f712d73a3fef087f3 Mon Sep 17 00:00:00 2001 From: topquark12 Date: Mon, 6 Jun 2022 15:25:37 +0800 Subject: [PATCH] fix whitespace error --- pytec/pytec/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytec/pytec/client.py b/pytec/pytec/client.py index 062d8dc..915a9db 100644 --- a/pytec/pytec/client.py +++ b/pytec/pytec/client.py @@ -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)