- Notifications
You must be signed in to change notification settings - Fork 31.8k
/
Copy pathmachinery.py
21 lines (18 loc) · 934 Bytes
/
machinery.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""The machinery of importlib: finders, loaders, hooks, etc."""
from ._bootstrapimportModuleSpec
from ._bootstrapimportBuiltinImporter
from ._bootstrapimportFrozenImporter
from ._bootstrap_externalimport (SOURCE_SUFFIXES, DEBUG_BYTECODE_SUFFIXES,
OPTIMIZED_BYTECODE_SUFFIXES, BYTECODE_SUFFIXES,
EXTENSION_SUFFIXES)
from ._bootstrap_externalimportWindowsRegistryFinder
from ._bootstrap_externalimportPathFinder
from ._bootstrap_externalimportFileFinder
from ._bootstrap_externalimportSourceFileLoader
from ._bootstrap_externalimportSourcelessFileLoader
from ._bootstrap_externalimportExtensionFileLoader
from ._bootstrap_externalimportAppleFrameworkLoader
from ._bootstrap_externalimportNamespaceLoader
defall_suffixes():
"""Returns a list of all recognized module suffixes for this process"""
returnSOURCE_SUFFIXES+BYTECODE_SUFFIXES+EXTENSION_SUFFIXES