From 16e0bab4ab3e153b082158558a70af22651ac942 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 25 Jun 1999 17:26:34 +0000 Subject: [PATCH] Close debugger when closing. This may break a cycle. --- Tools/idle/PyShell.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Tools/idle/PyShell.py b/Tools/idle/PyShell.py index 90f9b2c5858..8c93f4daf0e 100644 --- a/Tools/idle/PyShell.py +++ b/Tools/idle/PyShell.py @@ -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