From cef81a6fcc9e9e75b16a52c3e924a28153c35b72 2019-12-05 17:47:03 From: Matthias Bussonnier Date: 2019-12-05 17:47:03 Subject: [PATCH] Merge pull request #12008 from meeseeksmachine/auto-backport-of-pr-12007-on-7.10.x Backport PR #12007 on branch 7.10.x (Fix the right inputhook) --- diff --git a/IPython/terminal/debugger.py b/IPython/terminal/debugger.py index ba5ce1b..715f7c1 100644 --- a/IPython/terminal/debugger.py +++ b/IPython/terminal/debugger.py @@ -66,7 +66,7 @@ class TerminalPdb(Pdb): ) if not PTK3: - options['inputhook'] = self.inputhook + options['inputhook'] = self.shell.inputhook self.pt_app = PromptSession(**options) def cmdloop(self, intro=None): diff --git a/IPython/terminal/interactiveshell.py b/IPython/terminal/interactiveshell.py index 312b691..9f7d335 100644 --- a/IPython/terminal/interactiveshell.py +++ b/IPython/terminal/interactiveshell.py @@ -438,7 +438,7 @@ class TerminalInteractiveShell(InteractiveShell): Condition(lambda: self.highlight_matching_brackets))], } if not PTK3: - options['inputhook'] = self.shell.inputhook + options['inputhook'] = self.inputhook return options