jpayne@69: """The machinery of importlib: finders, loaders, hooks, etc.""" jpayne@69: jpayne@69: import _imp jpayne@69: jpayne@69: from ._bootstrap import ModuleSpec jpayne@69: from ._bootstrap import BuiltinImporter jpayne@69: from ._bootstrap import FrozenImporter jpayne@69: from ._bootstrap_external import (SOURCE_SUFFIXES, DEBUG_BYTECODE_SUFFIXES, jpayne@69: OPTIMIZED_BYTECODE_SUFFIXES, BYTECODE_SUFFIXES, jpayne@69: EXTENSION_SUFFIXES) jpayne@69: from ._bootstrap_external import WindowsRegistryFinder jpayne@69: from ._bootstrap_external import PathFinder jpayne@69: from ._bootstrap_external import FileFinder jpayne@69: from ._bootstrap_external import SourceFileLoader jpayne@69: from ._bootstrap_external import SourcelessFileLoader jpayne@69: from ._bootstrap_external import ExtensionFileLoader jpayne@69: jpayne@69: jpayne@69: def all_suffixes(): jpayne@69: """Returns a list of all recognized module suffixes for this process""" jpayne@69: return SOURCE_SUFFIXES + BYTECODE_SUFFIXES + EXTENSION_SUFFIXES