mirror of https://github.com/python/cpython
Close debugger when closing. This may break a cycle.
This commit is contained in:
parent
ba5a59c834
commit
16e0bab4ab
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue