From a88c08fb7881b407fa4cb413ff8630648f5cd582 2020-08-20 20:01:25 From: Matthias Bussonnier Date: 2020-08-20 20:01:25 Subject: [PATCH] Merge pull request #12503 from Carreau/fix-doc --- diff --git a/IPython/core/inputtransformer2.py b/IPython/core/inputtransformer2.py index 67be409..44b44de 100644 --- a/IPython/core/inputtransformer2.py +++ b/IPython/core/inputtransformer2.py @@ -61,6 +61,9 @@ class PromptStripper: Used mainly for plain Python prompts (``>>>``), where the continuation prompt ``...`` is a valid Python expression in Python 3, so shouldn't be stripped. + Notes + ----- + If initial_re and prompt_re differ, only initial_re will be tested against the first line. If any prompt is found on the first two lines,