mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Close debugger when closing. This may break a cycle.
This commit is contained in:
parent
ba5a59c834
commit
16e0bab4ab
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue