diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2023-09-30 10:27:28 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2023-09-30 10:47:10 +0300 |
commit | 5a6373c9d09bbfb7094f9992a4531477bb97829e (patch) | |
tree | ebea8fd55fee858876743312cdf789a1f01487b5 /contrib/python/ipython/py3/IPython/sphinxext/ipython_directive.py | |
parent | 15f3c7493474de25a6b23296878bb8f49470d2e6 (diff) | |
download | ydb-5a6373c9d09bbfb7094f9992a4531477bb97829e.tar.gz |
Update contrib/python/ipython/py3 to 8.15.0
Diffstat (limited to 'contrib/python/ipython/py3/IPython/sphinxext/ipython_directive.py')
-rw-r--r-- | contrib/python/ipython/py3/IPython/sphinxext/ipython_directive.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/python/ipython/py3/IPython/sphinxext/ipython_directive.py b/contrib/python/ipython/py3/IPython/sphinxext/ipython_directive.py index c428e7917f..10257a6d69 100644 --- a/contrib/python/ipython/py3/IPython/sphinxext/ipython_directive.py +++ b/contrib/python/ipython/py3/IPython/sphinxext/ipython_directive.py @@ -581,7 +581,9 @@ class EmbeddedSphinxShell(object): s += "<<<" + ("-" * 73) logger.warning(s) if self.warning_is_error: - raise RuntimeError('Non Expected exception in `{}` line {}'.format(filename, lineno)) + raise RuntimeError( + "Unexpected exception in `{}` line {}".format(filename, lineno) + ) # output any warning raised during execution to stdout # unless :okwarning: has been specified. @@ -597,7 +599,9 @@ class EmbeddedSphinxShell(object): s += "<<<" + ("-" * 73) logger.warning(s) if self.warning_is_error: - raise RuntimeError('Non Expected warning in `{}` line {}'.format(filename, lineno)) + raise RuntimeError( + "Unexpected warning in `{}` line {}".format(filename, lineno) + ) self.clear_cout() return (ret, input_lines, processed_output, |