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.
Showing the changes to tools/lib/python (9 of 18 files). Show all
Unified · Split
Empty file added.
Empty file added.
| @@ -17,7 +17,7 @@ from random import randrange, seed · 16 unmodified lines | ||
| 17 | 17 | |
| 18 | 18 | # Import Python modules |
| 19 | 19 | |
| 20 | −from helpers import AbiDebug, ABI_DIR | |
| 20 | +from abi.helpers import AbiDebug, ABI_DIR | |
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | class AbiParser: |
| @@ -12,8 +12,8 @@ import sys · 11 unmodified lines | ||
| 12 | 12 | |
| 13 | 13 | from pprint import pformat |
| 14 | 14 | |
| 15 | −from abi_parser import AbiParser | |
| 16 | −from helpers import AbiDebug | |
| 15 | +from abi.abi_parser import AbiParser | |
| 16 | +from abi.helpers import AbiDebug | |
| 17 | 17 | |
| 18 | 18 | class AbiRegex(AbiParser): |
| 19 | 19 | """Extends AbiParser to search ABI nodes with regular expressions""" |
| @@ -15,7 +15,7 @@ from concurrent import futures · 14 unmodified lines | ||
| 15 | 15 | from datetime import datetime |
| 16 | 16 | from random import shuffle |
| 17 | 17 | |
| 18 | −from helpers import AbiDebug | |
| 18 | +from abi.helpers import AbiDebug | |
| 19 | 19 | |
| 20 | 20 | class SystemSymbols: |
| 21 | 21 | """Stores arguments for the class and initialize class vars""" |
Empty file added.
| @@ -13,8 +13,8 @@ import logging · 12 unmodified lines | ||
| 13 | 13 | import os |
| 14 | 14 | import re |
| 15 | 15 | |
| 16 | −from kdoc_parser import KernelDoc | |
| 17 | −from kdoc_output import OutputFormat | |
| 16 | +from kdoc.kdoc_parser import KernelDoc | |
| 17 | +from kdoc.kdoc_output import OutputFormat | |
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | class GlobSourceFiles: |
| @@ -19,8 +19,8 @@ import os · 18 unmodified lines | ||
| 19 | 19 | import re |
| 20 | 20 | from datetime import datetime |
| 21 | 21 | |
| 22 | −from kdoc_parser import KernelDoc, type_param | |
| 23 | −from kdoc_re import KernRe | |
| 22 | +from kdoc.kdoc_parser import KernelDoc, type_param | |
| 23 | +from kdoc.kdoc_re import KernRe | |
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | function_pointer = KernRe(r"([^\(]*\(\*)\s*\)\s*\(([^\)]*)\)", cache=False) |
| @@ -16,8 +16,8 @@ import sys · 15 unmodified lines | ||
| 16 | 16 | import re |
| 17 | 17 | from pprint import pformat |
| 18 | 18 | |
| 19 | −from kdoc_re import NestedMatch, KernRe | |
| 20 | −from kdoc_item import KdocItem | |
| 19 | +from kdoc.kdoc_re import NestedMatch, KernRe | |
| 20 | +from kdoc.kdoc_item import KdocItem | |
| 21 | 21 | |
| 22 | 22 | # |
| 23 | 23 | # Regular expressions used to parse kernel-doc markups at KernelDoc class. |