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