Merge with 3.4

This commit is contained in:
Terry Jan Reedy 2015-11-21 00:05:17 -05:00
commit d13cade381
1 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,7 @@ class Idb(bdb.Bdb):
message = self.__frame2message(frame)
try:
self.gui.interaction(message, frame)
except (TclError, RuntimeError):
except TclError: # When closing debugger window with [x] in 3.x
pass
def user_exception(self, frame, info):
@ -105,10 +105,13 @@ class Debugger:
self.interacting = 0
def close(self, event=None):
try:
self.quit()
except Exception:
pass
if self.interacting:
self.top.bell()
return
self.abort_loop()
if self.stackviewer:
self.stackviewer.close(); self.stackviewer = None
# Clean up pyshell if user clicked debugger control close widget.