• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""The machinery of importlib: finders, loaders, hooks, etc."""
2
3import _imp
4
5from ._bootstrap import ModuleSpec
6from ._bootstrap import BuiltinImporter
7from ._bootstrap import FrozenImporter
8from ._bootstrap_external import (SOURCE_SUFFIXES, DEBUG_BYTECODE_SUFFIXES,
9                     OPTIMIZED_BYTECODE_SUFFIXES, BYTECODE_SUFFIXES,
10                     EXTENSION_SUFFIXES)
11from ._bootstrap_external import WindowsRegistryFinder
12from ._bootstrap_external import PathFinder
13from ._bootstrap_external import FileFinder
14from ._bootstrap_external import SourceFileLoader
15from ._bootstrap_external import SourcelessFileLoader
16from ._bootstrap_external import ExtensionFileLoader
17
18
19def all_suffixes():
20    """Returns a list of all recognized module suffixes for this process"""
21    return SOURCE_SUFFIXES + BYTECODE_SUFFIXES + EXTENSION_SUFFIXES
22