From e7680611230333038b7f8d5b6765f3f22bebe1b6 2021-09-06 20:45:19 From: Matthias Bussonnier Date: 2021-09-06 20:45:19 Subject: [PATCH] Merge pull request #13091 from madbird1304/madbird1304/issue#12897 Fix for issue #12897 --- diff --git a/IPython/terminal/interactiveshell.py b/IPython/terminal/interactiveshell.py index 0fa9028..2714412 100644 --- a/IPython/terminal/interactiveshell.py +++ b/IPython/terminal/interactiveshell.py @@ -204,9 +204,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):