Re: [PATCH 7/8] doc: remove kernellog.py

From
Mauro Carvalho Chehab <mchehab@kernel.org>
Date
2024-02-06 04:50:27
Reply to
Vegard Nossum, 2024-02-05
Em Mon,  5 Feb 2024 18:51:32 +0100
Vegard Nossum [off-list ref] escreveu:
With the last kernellog users gone, we can remove this compatibility
layer.

Signed-off-by: Vegard Nossum <redacted>
LGTM.

Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>
quoted hunk ↗ jump to hunk
---
 Documentation/sphinx/kernellog.py | 22 ----------------------
 1 file changed, 22 deletions(-)
 delete mode 100644 Documentation/sphinx/kernellog.py
diff --git a/Documentation/sphinx/kernellog.py b/Documentation/sphinx/kernellog.py
deleted file mode 100644
index 0bc00c138cad..000000000000
--- a/Documentation/sphinx/kernellog.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-#
-# Sphinx has deprecated its older logging interface, but the replacement
-# only goes back to 1.6.  So here's a wrapper layer to keep around for
-# as long as we support 1.4.
-#
-# We don't support 1.4 anymore, but we'll keep the wrappers around until
-# we change all the code to not use them anymore :)
-#
-import sphinx
-from sphinx.util import logging
-
-logger = logging.getLogger('kerneldoc')
-
-def warn(app, message):
-    logger.warning(message)
-
-def verbose(app, message):
-    logger.verbose(message)
-
-def info(app, message):
-    logger.info(message)


Thanks,
Mauro
Thread (32 messages) 32 messages, 6 authors, last reply 2024-02-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help