##// END OF EJS Templates
Fix #8077 for non-quit pdb exits.
memeplex -
Show More
@@ -282,11 +282,13 b' class Pdb(OldPdb):'
282 while True:
282 while True:
283 try:
283 try:
284 OldPdb.interaction(self, frame, traceback)
284 OldPdb.interaction(self, frame, traceback)
285 break
285 except KeyboardInterrupt:
286 except KeyboardInterrupt:
286 self.shell.write('\n' + self.shell.get_exception_only())
287 self.shell.write('\n' + self.shell.get_exception_only())
287 break
288 break
288 else:
289 finally:
289 break
290 # Pdb sets readline delimiters, so set them back to our own
291 self.shell.readline.set_completer_delims(self.shell.readline_delims)
290
292
291 def new_do_up(self, arg):
293 def new_do_up(self, arg):
292 OldPdb.do_up(self, arg)
294 OldPdb.do_up(self, arg)
@@ -308,10 +310,6 b' class Pdb(OldPdb):'
308 if hasattr(self, 'old_all_completions'):
310 if hasattr(self, 'old_all_completions'):
309 self.shell.Completer.all_completions=self.old_all_completions
311 self.shell.Completer.all_completions=self.old_all_completions
310
312
311 # Pdb sets readline delimiters, so set them back to our own
312 if self.shell.readline is not None:
313 self.shell.readline.set_completer_delims(self.shell.readline_delims)
314
315 return OldPdb.do_quit(self, arg)
313 return OldPdb.do_quit(self, arg)
316
314
317 do_q = do_quit = decorate_fn_with_doc(new_do_quit, OldPdb.do_quit)
315 do_q = do_quit = decorate_fn_with_doc(new_do_quit, OldPdb.do_quit)
General Comments 0
You need to be logged in to leave comments. Login now