docs: sphinx: remove kernellog.py file

In the past, there was a need for a wrapper due to different
Sphinx versions support (before Sphinx 1.6). This is long gone,
and now it is just a wrapper. Get rig of it to simplify
the code.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/48bf16f199250d7048ca164d1b90773861915157.1739182025.git.mchehab+huawei@kernel.org
This commit is contained in:
Mauro Carvalho Chehab
2025-02-10 11:17:50 +01:00
committed by Jonathan Corbet
parent 2b087edf58
commit 3d89178b85
4 changed files with 53 additions and 69 deletions

View File

@@ -37,13 +37,13 @@ import os
import subprocess
import sys
import re
import kernellog
from docutils import nodes, statemachine
from docutils.statemachine import ViewList
from docutils.parsers.rst import directives, Directive
from docutils.utils.error_reporting import ErrorString
from sphinx.util.docutils import switch_source_input
from sphinx.util import logging
__version__ = '1.0'
@@ -64,6 +64,7 @@ class KernelCmd(Directive):
optional_arguments = 2
has_content = False
final_argument_whitespace = True
logger = logging.getLogger('kernel_abi')
option_spec = {
"debug" : directives.flag,
@@ -129,7 +130,7 @@ class KernelCmd(Directive):
else:
content.append(line, f, ln)
kernellog.info(self.state.document.settings.env.app, "%s: parsed %i lines" % (fname, n))
self.logger.info("%s: parsed %i lines" % (fname, n))
if content:
self.do_parse(content, node)