From 69682d1ce91637260cd15d8c2dfa77a6a125870e Mon Sep 17 00:00:00 2001 From: aditya Date: Tue, 3 Oct 2023 21:31:29 +0530 Subject: [PATCH] removed trailing spaces Signed-off-by: aditya --- scripts/avogadro-remote.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/avogadro-remote.py b/scripts/avogadro-remote.py index b19a6f97..9f7c2f36 100755 --- a/scripts/avogadro-remote.py +++ b/scripts/avogadro-remote.py @@ -34,7 +34,7 @@ def __json(self, method, file): size = 1024 packet = self.sock.recv(size) print("reply:" + str(packet[4: ])) - else: + else: msg = { "jsonrpc": "2.0", "id": 0, @@ -45,13 +45,13 @@ def __json(self, method, file): size = len(json_msg) header = struct.pack(">I", size) packet = header + json_msg.encode("ascii") - self.sock.send(packet) + self.sock.send(packet) def open_file(self, file): """Opens file""" # param: file is filename input by the user in string method = "openFile" - self.__json(method,file) - self.__json("recv_msg",None) + self.__json(method,file) + self.__json("recv_msg",None) def save_graphic(self, file): """Save Graphic""" method = "saveGraphic" @@ -61,7 +61,7 @@ def kill(self): """To kill the current operation""" method = "kill" self.__json(method,None) - self.__json("recv_msg",None) + self.__json("recv_msg",None) def close(self): '''Close the socket to the named pipe''' self.sock.close()