Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/importlib/machinery.py: 8%

13 statements  

« prev     ^ index     » next       coverage.py v7.0.1, created at 2022-12-25 06:11 +0000

1"""The machinery of importlib: finders, loaders, hooks, etc.""" 

2 

3import _imp 

4 

5from ._bootstrap import ModuleSpec 

6from ._bootstrap import BuiltinImporter 

7from ._bootstrap import FrozenImporter 

8from ._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 

17 

18 

19def all_suffixes(): 

20 """Returns a list of all recognized module suffixes for this process""" 

21 return SOURCE_SUFFIXES + BYTECODE_SUFFIXES + EXTENSION_SUFFIXES