mirror of
https://github.com/python/cpython.git
synced 2024-11-26 11:24:40 +08:00
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
Block a user