machinery.py 754 Bytes
Newer Older
1 2
"""The machinery of importlib: finders, loaders, hooks, etc."""

3 4 5
import _imp

from ._bootstrap import (SOURCE_SUFFIXES, DEBUG_BYTECODE_SUFFIXES,
6 7
                         OPTIMIZED_BYTECODE_SUFFIXES, BYTECODE_SUFFIXES,
                         EXTENSION_SUFFIXES)
8 9
from ._bootstrap import BuiltinImporter
from ._bootstrap import FrozenImporter
10
from ._bootstrap import WindowsRegistryFinder
11
from ._bootstrap import PathFinder
12 13
from ._bootstrap import FileFinder
from ._bootstrap import SourceFileLoader
14
from ._bootstrap import SourcelessFileLoader
15
from ._bootstrap import ExtensionFileLoader
16

17 18 19 20

def all_suffixes():
    """Returns a list of all recognized module suffixes for this process"""
    return SOURCE_SUFFIXES + BYTECODE_SUFFIXES + EXTENSION_SUFFIXES