xref: /aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/importlib/machinery.py (revision cda5da8d549138a6648c5ee6d7a49cf8f4a657be)
1*cda5da8dSAndroid Build Coastguard Worker"""The machinery of importlib: finders, loaders, hooks, etc."""
2*cda5da8dSAndroid Build Coastguard Worker
3*cda5da8dSAndroid Build Coastguard Workerfrom ._bootstrap import ModuleSpec
4*cda5da8dSAndroid Build Coastguard Workerfrom ._bootstrap import BuiltinImporter
5*cda5da8dSAndroid Build Coastguard Workerfrom ._bootstrap import FrozenImporter
6*cda5da8dSAndroid Build Coastguard Workerfrom ._bootstrap_external import (SOURCE_SUFFIXES, DEBUG_BYTECODE_SUFFIXES,
7*cda5da8dSAndroid Build Coastguard Worker                     OPTIMIZED_BYTECODE_SUFFIXES, BYTECODE_SUFFIXES,
8*cda5da8dSAndroid Build Coastguard Worker                     EXTENSION_SUFFIXES)
9*cda5da8dSAndroid Build Coastguard Workerfrom ._bootstrap_external import WindowsRegistryFinder
10*cda5da8dSAndroid Build Coastguard Workerfrom ._bootstrap_external import PathFinder
11*cda5da8dSAndroid Build Coastguard Workerfrom ._bootstrap_external import FileFinder
12*cda5da8dSAndroid Build Coastguard Workerfrom ._bootstrap_external import SourceFileLoader
13*cda5da8dSAndroid Build Coastguard Workerfrom ._bootstrap_external import SourcelessFileLoader
14*cda5da8dSAndroid Build Coastguard Workerfrom ._bootstrap_external import ExtensionFileLoader
15*cda5da8dSAndroid Build Coastguard Workerfrom ._bootstrap_external import NamespaceLoader
16*cda5da8dSAndroid Build Coastguard Worker
17*cda5da8dSAndroid Build Coastguard Worker
18*cda5da8dSAndroid Build Coastguard Workerdef all_suffixes():
19*cda5da8dSAndroid Build Coastguard Worker    """Returns a list of all recognized module suffixes for this process"""
20*cda5da8dSAndroid Build Coastguard Worker    return SOURCE_SUFFIXES + BYTECODE_SUFFIXES + EXTENSION_SUFFIXES
21