Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3cec78 commit bbe7b0aCopy full SHA for bbe7b0a
2 files changed
Lib/idlelib/configHandler.py
@@ -145,7 +145,8 @@ def Save(self):
145
except IOError:
146
os.unlink(fname)
147
cfgFile = open(fname, 'w')
148
- self.write(cfgFile)
+ with cfgFile:
149
+ self.write(cfgFile)
150
else:
151
self.RemoveFile()
152
Lib/idlelib/rpc.py
@@ -534,6 +534,10 @@ def accept(self):
534
def get_remote_proxy(self, oid):
535
return RPCProxy(self, oid)
536
537
+ def close(self):
538
+ self.listening_sock.close()
539
+ SocketIO.close(self)
540
+
541
class RPCProxy(object):
542
543
__methods = None
0 commit comments