From cf133197cc3ed3d72a726909fc0538a3b7564f73 2015-05-24 22:55:14 From: Thomas Kluyver Date: 2015-05-24 22:55:14 Subject: [PATCH] Fix quitting debugger when readline not in use Closes gh-8465 --- diff --git a/IPython/core/debugger.py b/IPython/core/debugger.py index 5d34cf2..548f109 100644 --- a/IPython/core/debugger.py +++ b/IPython/core/debugger.py @@ -303,7 +303,8 @@ class Pdb(OldPdb): self.shell.Completer.all_completions=self.old_all_completions # Pdb sets readline delimiters, so set them back to our own - self.shell.readline.set_completer_delims(self.shell.readline_delims) + if self.shell.readline is not None: + self.shell.readline.set_completer_delims(self.shell.readline_delims) return OldPdb.do_quit(self, arg)