Skip to content

Commit

Permalink
resolved warnings by codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
adityaomar3 committed Oct 24, 2023
1 parent 69682d1 commit bd48b18
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions scripts/avogadro-remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ def __json(self, method, file):
print("reply:" + str(packet[4: ]))
else:
msg = {
"jsonrpc": "2.0",
"id": 0,
"method": method,
"params": {"fileName": file},
"jsonrpc": "2.0",
"id": 0,
"method": method,
"params": {"fileName": file},
}
json_msg = json.dumps(msg)
size = len(json_msg)
Expand All @@ -50,19 +50,19 @@ 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"
self.__json(method,file)
self.__json("recv_msg",None)
self.__json(method, file)
self.__json("recv_msg", None)
def kill(self):
"""To kill the current operation"""
method = "kill"
self.__json(method,None)
self.__json("recv_msg",None)
self.__json(method, None)
self.__json("recv_msg", None)
def close(self):
'''Close the socket to the named pipe'''
self.sock.close()
print("CONNECTION CLOSED SUCCESSFULLY")
print("CONNECTION CLOSED SUCCESSFULLY")

0 comments on commit bd48b18

Please sign in to comment.