blob: 1b2b5c9b4f3407a7a92abeb2d303cd1f7cd3b3ed [file] [log] [blame]
Brett Cannon5abdc932009-01-22 22:43:07 +00001"""The machinery of importlib: finders, loaders, hooks, etc."""
2
Brett Cannoncb66eb02012-05-11 12:58:42 -04003import _imp
4
Eric Snowb523f842013-11-22 09:05:39 -07005from ._bootstrap import ModuleSpec
Brett Cannon5abdc932009-01-22 22:43:07 +00006from ._bootstrap import BuiltinImporter
7from ._bootstrap import FrozenImporter
Eric Snow32439d62015-05-02 19:15:18 -06008from ._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
Brett Cannoncb66eb02012-05-11 12:58:42 -040017
Nick Coghlan76e07702012-07-18 23:14:57 +100018
19def all_suffixes():
20 """Returns a list of all recognized module suffixes for this process"""
21 return SOURCE_SUFFIXES + BYTECODE_SUFFIXES + EXTENSION_SUFFIXES