mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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:
0
tools/lib/python/__init__.py
Normal file
0
tools/lib/python/__init__.py
Normal file
0
tools/lib/python/abi/__init__.py
Normal file
0
tools/lib/python/abi/__init__.py
Normal 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:
|
||||
|
||||
@@ -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"""
|
||||
|
||||
@@ -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"""
|
||||
|
||||
0
tools/lib/python/kdoc/__init__.py
Normal file
0
tools/lib/python/kdoc/__init__.py
Normal 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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user