mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-24 19:12:14 +00:00
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:
committed by
Jonathan Corbet
parent
2b087edf58
commit
3d89178b85
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user