docs: bring some order to our Python module hierarchy

Now that we have tools/lib/python for our Python modules, turn them into
proper packages with a single namespace so that everything can just use
tools/lib/python in sys.path.  No functional change.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20251110220430.726665-3-corbet@lwn.net>
This commit is contained in:
Jonathan Corbet
2025-11-10 15:04:30 -07:00
parent 778b8ebe51
commit 992a9df41a
18 changed files with 34 additions and 35 deletions

View File

View File

View File

@@ -17,7 +17,7 @@ from random import randrange, seed
# Import Python modules
from helpers import AbiDebug, ABI_DIR
from abi.helpers import AbiDebug, ABI_DIR
class AbiParser:

View File

@@ -12,8 +12,8 @@ import sys
from pprint import pformat
from abi_parser import AbiParser
from helpers import AbiDebug
from abi.abi_parser import AbiParser
from abi.helpers import AbiDebug
class AbiRegex(AbiParser):
"""Extends AbiParser to search ABI nodes with regular expressions"""

View File

@@ -15,7 +15,7 @@ from concurrent import futures
from datetime import datetime
from random import shuffle
from helpers import AbiDebug
from abi.helpers import AbiDebug
class SystemSymbols:
"""Stores arguments for the class and initialize class vars"""

View File

View File

@@ -13,8 +13,8 @@ import logging
import os
import re
from kdoc_parser import KernelDoc
from kdoc_output import OutputFormat
from kdoc.kdoc_parser import KernelDoc
from kdoc.kdoc_output import OutputFormat
class GlobSourceFiles:

View File

@@ -19,8 +19,8 @@ import os
import re
from datetime import datetime
from kdoc_parser import KernelDoc, type_param
from kdoc_re import KernRe
from kdoc.kdoc_parser import KernelDoc, type_param
from kdoc.kdoc_re import KernRe
function_pointer = KernRe(r"([^\(]*\(\*)\s*\)\s*\(([^\)]*)\)", cache=False)

View File

@@ -16,8 +16,8 @@ import sys
import re
from pprint import pformat
from kdoc_re import NestedMatch, KernRe
from kdoc_item import KdocItem
from kdoc.kdoc_re import NestedMatch, KernRe
from kdoc.kdoc_item import KdocItem
#
# Regular expressions used to parse kernel-doc markups at KernelDoc class.