From cee163f6d219ff013dbb9ff888baee18fb80d814 2021-10-25 15:49:50 From: Nikita Kniazev Date: 2021-10-25 15:49:50 Subject: [PATCH] Fix IPythonConsoleLexer doctest --- diff --git a/IPython/lib/lexers.py b/IPython/lib/lexers.py index 4494da5..0c9b6e1 100644 --- a/IPython/lib/lexers.py +++ b/IPython/lib/lexers.py @@ -221,11 +221,9 @@ class IPythonConsoleLexer(Lexer): In [2]: a Out[2]: 'foo' - In [3]: print a + In [3]: print(a) foo - In [4]: 1 / 0 - Support is also provided for IPython exceptions: @@ -234,13 +232,9 @@ class IPythonConsoleLexer(Lexer): .. code-block:: ipythonconsole In [1]: raise Exception - - --------------------------------------------------------------------------- - Exception Traceback (most recent call last) - in - ----> 1 raise Exception - - Exception: + Traceback (most recent call last): + ... + Exception """ name = 'IPython console session'