pc_rpc: avoid 'close' name conflict in client

This commit is contained in:
Sebastien Bourdeauducq 2014-10-25 11:33:08 +08:00
parent f106b238eb
commit 513aa393b0
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class Client:
def __init__(self, host, port): def __init__(self, host, port):
self.socket = socket.create_connection((host, port)) self.socket = socket.create_connection((host, port))
def close(self): def close_rpc(self):
self.socket.close() self.socket.close()
def do_rpc(self, name, args, kwargs): def do_rpc(self, name, args, kwargs):

View File

@ -37,7 +37,7 @@ def main():
if args.quit_master: if args.quit_master:
remote.quit() remote.quit()
finally: finally:
remote.close() remote.close_rpc()
if __name__ == "__main__": if __name__ == "__main__":
main() main()