diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 16:20:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 16:20:59 +0000 |
commit | 5de84c9242643f786eff03726286578726d7d390 (patch) | |
tree | 8e8eadab2b786c41d7b8a2cdafbb467588928ad0 /sphinx/util/exceptions.py | |
parent | Releasing progress-linux version 7.2.6-8~progress7.99u1. (diff) | |
download | sphinx-5de84c9242643f786eff03726286578726d7d390.tar.xz sphinx-5de84c9242643f786eff03726286578726d7d390.zip |
Merging upstream version 7.3.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | sphinx/util/exceptions.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/util/exceptions.py b/sphinx/util/exceptions.py index 9e25695..577ec73 100644 --- a/sphinx/util/exceptions.py +++ b/sphinx/util/exceptions.py @@ -6,7 +6,7 @@ from tempfile import NamedTemporaryFile from typing import TYPE_CHECKING from sphinx.errors import SphinxParallelError -from sphinx.util.console import strip_colors +from sphinx.util.console import strip_escape_sequences if TYPE_CHECKING: from sphinx.application import Sphinx @@ -31,7 +31,8 @@ def save_traceback(app: Sphinx | None, exc: BaseException) -> str: last_msgs = exts_list = '' else: extensions = app.extensions.values() - last_msgs = '\n'.join(f'# {strip_colors(s).strip()}' for s in app.messagelog) + last_msgs = '\n'.join(f'# {strip_escape_sequences(s).strip()}' + for s in app.messagelog) exts_list = '\n'.join(f'# {ext.name} ({ext.version})' for ext in extensions if ext.version != 'builtin') |