Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions IPython/core/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,13 @@ def interaction(self, frame, traceback):
while True:
try:
OldPdb.interaction(self, frame, traceback)
break
except KeyboardInterrupt:
self.shell.write('\n' + self.shell.get_exception_only())
break
else:
break
finally:
# Pdb sets readline delimiters, so set them back to our own
self.shell.readline.set_completer_delims(self.shell.readline_delims)

def new_do_up(self, arg):
OldPdb.do_up(self, arg)
Expand All @@ -308,10 +310,6 @@ def new_do_quit(self, arg):
if hasattr(self, 'old_all_completions'):
self.shell.Completer.all_completions=self.old_all_completions

# Pdb sets readline delimiters, so set them back to our own
if self.shell.readline is not None:
self.shell.readline.set_completer_delims(self.shell.readline_delims)

return OldPdb.do_quit(self, arg)

do_q = do_quit = decorate_fn_with_doc(new_do_quit, OldPdb.do_quit)
Expand Down