From ae0cfb2d1cbcf52e992359d2dad1e8cb7ce96286 2020-03-01 10:48:15 From: foobarbyte <61650320+foobarbyte@users.noreply.github.com> Date: 2020-03-01 10:48:15 Subject: [PATCH] Remove redundant setting of tempfile_suffix. Since tempfile_suffix is set in the PromptSession constructor, it does not need to be set when calling the open_input_in_editor function. --- diff --git a/IPython/terminal/shortcuts.py b/IPython/terminal/shortcuts.py index e44e342..24224d4 100644 --- a/IPython/terminal/shortcuts.py +++ b/IPython/terminal/shortcuts.py @@ -250,7 +250,6 @@ def newline_autoindent_outer(inputsplitter) -> Callable[..., None]: def open_input_in_editor(event): - event.app.current_buffer.tempfile_suffix = ".py" event.app.current_buffer.open_in_editor()