mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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)
|
return PyShellEditorWindow.close(self)
|
||||||
|
|
||||||
def _close(self):
|
def _close(self):
|
||||||
|
self.close_debugger()
|
||||||
# Restore std streams
|
# Restore std streams
|
||||||
sys.stdout = self.save_stdout
|
sys.stdout = self.save_stdout
|
||||||
sys.stderr = self.save_stderr
|
sys.stderr = self.save_stderr
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue