Commit 74bd7516 authored by Guido van Rossum's avatar Guido van Rossum

Close debugger when closing. This may break a cycle.

parent 02fedd01
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment