From b5b3ea78c75fa283d490611676e1516ac78f5bfa 2015-10-26 20:16:24 From: Min RK Date: 2015-10-26 20:16:24 Subject: [PATCH] restore check for readline fix regression in debugger exit for non-readline contexts --- diff --git a/IPython/core/debugger.py b/IPython/core/debugger.py index c5548e4..f3a619b 100644 --- a/IPython/core/debugger.py +++ b/IPython/core/debugger.py @@ -288,7 +288,8 @@ class Pdb(OldPdb): break finally: # 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) def new_do_up(self, arg): OldPdb.do_up(self, arg)