diff --git a/IPython/terminal/interactiveshell.py b/IPython/terminal/interactiveshell.py index c6812a2..c7d4167 100644 --- a/IPython/terminal/interactiveshell.py +++ b/IPython/terminal/interactiveshell.py @@ -168,9 +168,8 @@ class TerminalInteractiveShell(InteractiveShell): @observe('editing_mode') def _editing_mode(self, change): - u_mode = change.new.upper() if self.pt_app: - self.pt_app.editing_mode = u_mode + self.pt_app.editing_mode = getattr(EditingMode, change.new.upper()) @observe('autoformatter') def _autoformatter_changed(self, change):