summaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py3/IPython/lib/lexers.py
diff options
context:
space:
mode:
authorrobot-contrib <[email protected]>2022-05-18 00:43:36 +0300
committerrobot-contrib <[email protected]>2022-05-18 00:43:36 +0300
commit9e5f436a8b2a27bcc7802e443ea3ef3e41a82a75 (patch)
tree78b522cab9f76336e62064d4d8ff7c897659b20e /contrib/python/ipython/py3/IPython/lib/lexers.py
parent8113a823ffca6451bb5ff8f0334560885a939a24 (diff)
Update contrib/python/ipython/py3 to 8.3.0
ref:e84342d4d30476f9148137f37fd0c6405fd36f55
Diffstat (limited to 'contrib/python/ipython/py3/IPython/lib/lexers.py')
-rw-r--r--contrib/python/ipython/py3/IPython/lib/lexers.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/contrib/python/ipython/py3/IPython/lib/lexers.py b/contrib/python/ipython/py3/IPython/lib/lexers.py
index 4494da56571..0c9b6e1bc7e 100644
--- a/contrib/python/ipython/py3/IPython/lib/lexers.py
+++ b/contrib/python/ipython/py3/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)
- <ipython-input-1-fca2ab0ca76b> in <module>
- ----> 1 raise Exception
-
- Exception:
+ Traceback (most recent call last):
+ ...
+ Exception
"""
name = 'IPython console session'