Close debugger when closing. This may break a cycle.

This commit is contained in:
Guido van Rossum 1999-06-25 17:26:34 +00:00
parent ba5a59c834
commit 16e0bab4ab

View File

@ -390,6 +390,7 @@ class PyShell(OutputWindow):
return PyShellEditorWindow.close(self)
def _close(self):
self.close_debugger()
# Restore std streams
sys.stdout = self.save_stdout
sys.stderr = self.save_stderr