blob: 2e1b2d73e73fefe733cec0bd1b446e6754301e6a [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
5from ._bootstrap import (SOURCE_SUFFIXES, DEBUG_BYTECODE_SUFFIXES,
Brett Cannonac9f2f32012-08-10 13:47:54 -04006 OPTIMIZED_BYTECODE_SUFFIXES, BYTECODE_SUFFIXES,
7 EXTENSION_SUFFIXES)
Eric Snowb523f842013-11-22 09:05:39 -07008from ._bootstrap import ModuleSpec
Brett Cannon5abdc932009-01-22 22:43:07 +00009from ._bootstrap import BuiltinImporter
10from ._bootstrap import FrozenImporter
Nick Coghlanff794862012-08-02 21:45:24 +100011from ._bootstrap import WindowsRegistryFinder
Brett Cannonfa3d1fc2009-02-05 02:52:57 +000012from ._bootstrap import PathFinder
Brett Cannon938d44d2012-04-22 19:58:33 -040013from ._bootstrap import FileFinder
14from ._bootstrap import SourceFileLoader
Marc-Andre Lemburg4fe29c92012-04-25 02:31:37 +020015from ._bootstrap import SourcelessFileLoader
Brett Cannon938d44d2012-04-22 19:58:33 -040016from ._bootstrap 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