blob: 9a7757fb6e4494e46c30a5e7feef6da2bde768a4 [file] [log] [blame]
Brett Cannon5abdc932009-01-22 22:43:07 +00001"""The machinery of importlib: finders, loaders, hooks, etc."""
2
Eric Snowb523f842013-11-22 09:05:39 -07003from ._bootstrap import ModuleSpec
Brett Cannon5abdc932009-01-22 22:43:07 +00004from ._bootstrap import BuiltinImporter
5from ._bootstrap import FrozenImporter
Eric Snow32439d62015-05-02 19:15:18 -06006from ._bootstrap_external import (SOURCE_SUFFIXES, DEBUG_BYTECODE_SUFFIXES,
7 OPTIMIZED_BYTECODE_SUFFIXES, BYTECODE_SUFFIXES,
8 EXTENSION_SUFFIXES)
9from ._bootstrap_external import WindowsRegistryFinder
10from ._bootstrap_external import PathFinder
11from ._bootstrap_external import FileFinder
12from ._bootstrap_external import SourceFileLoader
13from ._bootstrap_external import SourcelessFileLoader
14from ._bootstrap_external import ExtensionFileLoader
Brett Cannoncb66eb02012-05-11 12:58:42 -040015
Nick Coghlan76e07702012-07-18 23:14:57 +100016
17def all_suffixes():
18 """Returns a list of all recognized module suffixes for this process"""
19 return SOURCE_SUFFIXES + BYTECODE_SUFFIXES + EXTENSION_SUFFIXES