commit | bbe7b0ad2a4bc34e5f9ef3b26653ed5c2642d319 | [log] [tgz] |
---|---|---|
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Mon Oct 03 20:33:24 2011 +0200 |
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Mon Oct 03 20:33:24 2011 +0200 |
tree | 0ab7c7e158f52137ac1add28b5de71a927a8f18e | |
parent | c3cec7868bf1019c0987f1e9aadb56d73fa93d61 [diff] [blame] |
Fix a few ResourceWarnings in idle
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py index 0c56ccd..53f4aa8 100644 --- a/Lib/idlelib/rpc.py +++ b/Lib/idlelib/rpc.py
@@ -534,6 +534,10 @@ def get_remote_proxy(self, oid): return RPCProxy(self, oid) + def close(self): + self.listening_sock.close() + SocketIO.close(self) + class RPCProxy(object): __methods = None