xf.li | 8611891 | 2025-03-19 20:07:27 -0700 | [diff] [blame^] | 1 | """The machinery of importlib: finders, loaders, hooks, etc.""" |
| 2 | |
| 3 | import _imp |
| 4 | |
| 5 | from ._bootstrap import ModuleSpec |
| 6 | from ._bootstrap import BuiltinImporter |
| 7 | from ._bootstrap import FrozenImporter |
| 8 | from ._bootstrap_external import (SOURCE_SUFFIXES, DEBUG_BYTECODE_SUFFIXES, |
| 9 | OPTIMIZED_BYTECODE_SUFFIXES, BYTECODE_SUFFIXES, |
| 10 | EXTENSION_SUFFIXES) |
| 11 | from ._bootstrap_external import WindowsRegistryFinder |
| 12 | from ._bootstrap_external import PathFinder |
| 13 | from ._bootstrap_external import FileFinder |
| 14 | from ._bootstrap_external import SourceFileLoader |
| 15 | from ._bootstrap_external import SourcelessFileLoader |
| 16 | from ._bootstrap_external import ExtensionFileLoader |
| 17 | |
| 18 | |
| 19 | def all_suffixes(): |
| 20 | """Returns a list of all recognized module suffixes for this process""" |
| 21 | return SOURCE_SUFFIXES + BYTECODE_SUFFIXES + EXTENSION_SUFFIXES |