Skip to content

Commit

Permalink
removed trailing spaces
Browse files Browse the repository at this point in the history
Signed-off-by: aditya <[email protected]>
  • Loading branch information
adityaomar3 committed Oct 3, 2023
1 parent ad73c53 commit 69682d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/avogadro-remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Check warning

Code scanning / Pylint (reported by Codacy)

Wrong hanging indentation (remove 4 spaces). Warning

Wrong hanging indentation (remove 4 spaces).
"id": 0,

Check warning

Code scanning / Pylint (reported by Codacy)

Wrong hanging indentation (remove 4 spaces). Warning

Wrong hanging indentation (remove 4 spaces).
Expand All @@ -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)

Check warning

Code scanning / Pylint (reported by Codacy)

Exactly one space required after comma Warning

Exactly one space required after comma
self.__json("recv_msg",None)

Check warning

Code scanning / Pylint (reported by Codacy)

Exactly one space required after comma Warning

Exactly one space required after comma
def save_graphic(self, file):
"""Save Graphic"""
method = "saveGraphic"
Expand All @@ -61,7 +61,7 @@ def kill(self):
"""To kill the current operation"""
method = "kill"
self.__json(method,None)

Check warning

Code scanning / Pylint (reported by Codacy)

Exactly one space required after comma Warning

Exactly one space required after comma
self.__json("recv_msg",None)
self.__json("recv_msg",None)

Check warning

Code scanning / Pylint (reported by Codacy)

Exactly one space required after comma Warning

Exactly one space required after comma
def close(self):
'''Close the socket to the named pipe'''
self.sock.close()
Expand Down

0 comments on commit 69682d1

Please sign in to comment.