diff options
Diffstat (limited to 'doc/sphinx/kernel_feat.py')
| -rw-r--r-- | doc/sphinx/kernel_feat.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/sphinx/kernel_feat.py b/doc/sphinx/kernel_feat.py index 2fee04f1ded..cca48f6f1a4 100644 --- a/doc/sphinx/kernel_feat.py +++ b/doc/sphinx/kernel_feat.py @@ -41,7 +41,9 @@ from os import path from docutils import nodes, statemachine from docutils.statemachine import ViewList from docutils.parsers.rst import directives, Directive -from docutils.utils.error_reporting import ErrorString + +def ErrorString(exc): # Shamelessly stolen from docutils + return f'{exc.__class__.__name}: {exc}' # # AutodocReporter is only good up to Sphinx 1.7 |
