/external/python/cpython3/Lib/test/test_importlib/ |
D | test_windows.py | 2 machinery = test_util.import_importlib('importlib.machinery') variable 37 def setup_module(machinery, name, path=None): argument 38 if machinery.WindowsRegistryFinder.DEBUG_BUILD: 39 root = machinery.WindowsRegistryFinder.REGISTRY_KEY_DEBUG 41 root = machinery.WindowsRegistryFinder.REGISTRY_KEY 52 if machinery.WindowsRegistryFinder.DEBUG_BUILD: 64 spec = self.machinery.WindowsRegistryFinder.find_spec('spam') 68 loader = self.machinery.WindowsRegistryFinder.find_module('spam') 72 with setup_module(self.machinery, self.test_module): 73 loader = self.machinery.WindowsRegistryFinder.find_module(self.test_module) [all …]
|
D | test_spec.py | 4 machinery = test_util.import_importlib('importlib.machinery') variable 72 self.spec = self.machinery.ModuleSpec(self.name, self.loader) 73 self.loc_spec = self.machinery.ModuleSpec(self.name, self.loader, 78 spec = self.machinery.ModuleSpec(self.name, self.loader) 89 spec = self.machinery.ModuleSpec(self.name, None) 100 spec = self.machinery.ModuleSpec(self.name, self.loader, 112 spec = self.machinery.ModuleSpec(self.name, self.loader, 124 spec = self.machinery.ModuleSpec(self.name, self.loader, 171 spec = self.machinery.ModuleSpec('spam.eggs', self.loader) 176 spec = self.machinery.ModuleSpec('spam.eggs', self.loader, [all …]
|
D | test_util.py | 4 machinery = util.import_importlib('importlib.machinery') variable 51 spec = self.machinery.ModuleSpec('test', Loader()) 59 spec = self.machinery.ModuleSpec('test', Loader()) 73 spec = self.machinery.ModuleSpec('test', Loader()) 79 spec = self.machinery.ModuleSpec('test', object()) 84 spec = self.machinery.ModuleSpec('test', object()) 90 spec = self.machinery.ModuleSpec('test', loader) 95 spec = self.machinery.ModuleSpec('test.pkg', object()) 100 spec = self.machinery.ModuleSpec('test', object(), is_package=True) 105 spec = self.machinery.ModuleSpec('test', object(), origin='some/path') [all …]
|
D | test_api.py | 5 machinery = test_util.import_importlib('importlib.machinery') variable 177 return machinery['Source'].ModuleSpec(name, (name, path)) 439 if self.machinery.BuiltinImporter.find_module(name): 441 elif self.machinery.FrozenImporter.find_module(name): 449 if self.machinery.BuiltinImporter.find_module(name): 451 elif self.machinery.FrozenImporter.find_module(name): 457 ) = test_util.test_both(StartupTests, machinery=machinery)
|
/external/python/cpython3/Lib/test/test_importlib/frozen/ |
D | test_loader.py | 4 machinery = util.import_importlib('importlib.machinery') variable 16 spec = self.machinery.ModuleSpec( 17 name, self.machinery.FrozenImporter, origin='frozen', 18 is_package=self.machinery.FrozenImporter.is_package(name)) 22 self.machinery.FrozenImporter.exec_module(module) 67 repr_str = self.machinery.FrozenImporter.module_repr(module) 81 assert self.machinery.FrozenImporter.find_module('_not_real') is None 89 ) = util.test_both(ExecModuleTests, machinery=machinery) 98 module = self.machinery.FrozenImporter.load_module('__hello__') 101 '__loader__': self.machinery.FrozenImporter, [all …]
|
D | test_finder.py | 4 machinery = util.import_importlib('importlib.machinery') variable 14 finder = self.machinery.FrozenImporter 43 ) = util.test_both(FindSpecTests, machinery=machinery) 51 finder = self.machinery.FrozenImporter 80 ) = util.test_both(FinderTests, machinery=machinery)
|
/external/python/cpython3/Lib/test/test_importlib/builtin/ |
D | test_finder.py | 4 machinery = util.import_importlib('importlib.machinery') variable 18 found = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name) 37 spec = self.machinery.BuiltinImporter.find_spec(name) 43 spec = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name, 50 ) = util.test_both(FindSpecTests, machinery=machinery) 61 found = self.machinery.BuiltinImporter.find_module(util.BUILTINS.good_name) 73 loader = self.machinery.BuiltinImporter.find_module('importlib') 79 loader = self.machinery.BuiltinImporter.find_module(util.BUILTINS.good_name, 86 ) = util.test_both(FinderTests, machinery=machinery)
|
D | test_loader.py | 4 machinery = util.import_importlib('importlib.machinery') variable 17 '__loader__': self.machinery.BuiltinImporter} 27 return self.machinery.BuiltinImporter.load_module(name) 70 ) = util.test_both(LoaderTests, machinery=machinery) 80 result = self.machinery.BuiltinImporter.get_code(util.BUILTINS.good_name) 85 result = self.machinery.BuiltinImporter.get_source(util.BUILTINS.good_name) 90 result = self.machinery.BuiltinImporter.is_package(util.BUILTINS.good_name) 97 method = getattr(self.machinery.BuiltinImporter, meth_name) 104 ) = util.test_both(InspectLoaderTests, machinery=machinery)
|
/external/python/cpython3/Lib/test/test_importlib/import_/ |
D | test_path.py | 4 machinery = util.import_importlib('importlib.machinery') variable 103 self.machinery.FileFinder.path_hook( 127 self.machinery.PathFinder.find_spec('whatever', [path])) 131 spec = self.machinery.PathFinder.find_spec('whatever', [path]) 143 self.machinery.PathFinder.find_spec('whatever', [path])) 147 spec = self.machinery.PathFinder.find_spec('whatever', [path]) 158 self.machinery.PathFinder.find_spec('whatever', [path])) 160 success_finder.spec = self.machinery.ModuleSpec('whatever', __loader__) 162 got = self.machinery.PathFinder.find_spec('whatever', [path]) 185 self.assertIsNone(self.machinery.PathFinder.find_spec('whatever')) [all …]
|
/external/python/cpython3/Lib/test/test_importlib/source/ |
D | test_finder.py | 4 machinery = util.import_importlib('importlib.machinery') variable 42 loader_details = [(self.machinery.SourceFileLoader, 43 self.machinery.SOURCE_SUFFIXES), 44 (self.machinery.SourcelessFileLoader, 45 self.machinery.BYTECODE_SUFFIXES)] 46 return self.machinery.FileFinder(root, *loader_details) 128 finder = self.machinery.FileFinder('', (self.machinery.SourceFileLoader, 129 self.machinery.SOURCE_SUFFIXES)) 140 finder = self.machinery.FileFinder('', (self.machinery.SourceFileLoader, 141 self.machinery.SOURCE_SUFFIXES)) [all …]
|
D | test_case_sensitivity.py | 7 machinery = util.import_importlib('importlib.machinery') variable 25 return self.machinery.FileFinder(path, 26 (self.machinery.SourceFileLoader, 27 self.machinery.SOURCE_SUFFIXES), 28 (self.machinery.SourcelessFileLoader, 29 self.machinery.BYTECODE_SUFFIXES)) 73 machinery=machinery) 85 machinery=machinery)
|
D | test_source_encoding.py | 3 machinery = util.import_importlib('importlib.machinery') variable 41 loader = self.machinery.SourceFileLoader(self.module_name, 102 ) = util.test_both(EncodingTestPEP451, machinery=machinery) 115 ) = util.test_both(EncodingTestPEP302, machinery=machinery) 130 loader = self.machinery.SourceFileLoader(module_name, 158 ) = util.test_both(LineEndingTestPEP451, machinery=machinery) 171 ) = util.test_both(LineEndingTestPEP302, machinery=machinery)
|
D | test_path_hook.py | 3 machinery = util.import_importlib('importlib.machinery') variable 13 return self.machinery.FileFinder.path_hook((self.machinery.SourceFileLoader, 14 self.machinery.SOURCE_SUFFIXES)) 37 ) = util.test_both(PathHookTest, machinery=machinery)
|
D | test_file_loader.py | 6 machinery = util.import_importlib('importlib.machinery') variable 36 self.loader = self.machinery.SourceFileLoader(self.name, self.filepath) 67 other = self.machinery.SourceFileLoader(self.name, self.filepath) 71 other = self.machinery.SourceFileLoader('_' + self.name, self.filepath) 77 loader = self.machinery.SourceFileLoader('_temp', mapping['_temp']) 89 loader = self.machinery.SourceFileLoader('_pkg', 104 loader = self.machinery.SourceFileLoader('_pkg.mod', 121 loader = self.machinery.SourceFileLoader('_temp', mapping['_temp']) 150 loader = self.machinery.SourceFileLoader('_temp', mapping['_temp']) 167 loader = self.machinery.SourceFileLoader('_temp', mapping['_temp']) [all …]
|
/external/python/cpython3/Lib/test/test_importlib/extension/ |
D | test_path_hook.py | 3 machinery = util.import_importlib('importlib.machinery') variable 15 return self.machinery.FileFinder.path_hook( 16 (self.machinery.ExtensionFileLoader, 17 self.machinery.EXTENSION_SUFFIXES))(entry) 27 ) = util.test_both(PathHookTests, machinery=machinery)
|
D | test_finder.py | 4 machinery = util.import_importlib('importlib.machinery') variable 15 importer = self.machinery.FileFinder(util.EXTENSIONS.path, 16 (self.machinery.ExtensionFileLoader, 17 self.machinery.EXTENSION_SUFFIXES)) 40 ) = util.test_both(FinderTests, machinery=machinery)
|
D | test_loader.py | 4 machinery = util.import_importlib('importlib.machinery') variable 19 self.loader = self.machinery.ExtensionFileLoader(util.EXTENSIONS.name, 33 other = self.machinery.ExtensionFileLoader(util.EXTENSIONS.name, 38 other = self.machinery.ExtensionFileLoader('_' + util.EXTENSIONS.name, 51 self.machinery.ExtensionFileLoader) 76 for suffix in self.machinery.EXTENSION_SUFFIXES: 78 loader = self.machinery.ExtensionFileLoader('pkg', path) 83 ) = util.test_both(LoaderTests, machinery=machinery) 91 finder = self.machinery.FileFinder(None) 94 self.loader = self.machinery.ExtensionFileLoader( [all …]
|
D | test_case_sensitivity.py | 8 machinery = util.import_importlib('importlib.machinery') variable 19 finder = self.machinery.FileFinder(util.EXTENSIONS.path, 20 (self.machinery.ExtensionFileLoader, 21 self.machinery.EXTENSION_SUFFIXES)) 44 machinery=machinery)
|
/external/python/cpython3/Lib/importlib/ |
D | abc.py | 4 from . import machinery 84 _register(MetaPathFinder, machinery.BuiltinImporter, machinery.FrozenImporter, 85 machinery.PathFinder, machinery.WindowsRegistryFinder) 134 _register(PathEntryFinder, machinery.FileFinder) 250 _register(InspectLoader, machinery.BuiltinImporter, machinery.FrozenImporter) 287 _register(ExecutionLoader, machinery.ExtensionFileLoader) 295 _register(FileLoader, machinery.SourceFileLoader, 296 machinery.SourcelessFileLoader) 343 _register(SourceLoader, machinery.SourceFileLoader) 389 _register(ResourceReader, machinery.SourceFileLoader)
|
/external/python/cpython3/Lib/ |
D | imp.py | 22 from importlib import machinery 107 extensions = [(s, 'rb', C_EXTENSION) for s in machinery.EXTENSION_SUFFIXES] 108 source = [(s, 'r', PY_SOURCE) for s in machinery.SOURCE_SUFFIXES] 109 bytecode = [(s, 'rb', PY_COMPILED) for s in machinery.BYTECODE_SUFFIXES] 160 class _LoadSourceCompatibility(_HackedGetData, machinery.SourceFileLoader): 174 module.__loader__ = machinery.SourceFileLoader(name, pathname) 202 extensions = (machinery.SOURCE_SUFFIXES[:] + 203 machinery.BYTECODE_SUFFIXES[:]) 282 for suffix in ['.py', machinery.BYTECODE_SUFFIXES[0]]: 335 import importlib.machinery [all …]
|
D | modulefinder.py | 5 import importlib.machinery 60 importlib.machinery.PathFinder.invalidate_caches() 62 spec = importlib.machinery.PathFinder.find_spec(name, path) 69 if spec.loader is importlib.machinery.BuiltinImporter: 72 if spec.loader is importlib.machinery.FrozenImporter: 80 if isinstance(spec.loader, importlib.machinery.SourceFileLoader): 83 elif isinstance(spec.loader, importlib.machinery.ExtensionFileLoader): 86 elif isinstance(spec.loader, importlib.machinery.SourcelessFileLoader): 280 suffixes += importlib.machinery.EXTENSION_SUFFIXES[:] 281 suffixes += importlib.machinery.SOURCE_SUFFIXES[:] [all …]
|
/external/python/cpython3/Tools/importbench/ |
D | importbench.py | 11 import importlib.machinery 69 sys.meta_path.append(importlib.machinery.PathFinder) 70 loader = (importlib.machinery.SourceFileLoader, 71 importlib.machinery.SOURCE_SUFFIXES) 72 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader)) 105 sys.meta_path.append(importlib.machinery.PathFinder) 106 loader = (importlib.machinery.SourceFileLoader, 107 importlib.machinery.SOURCE_SUFFIXES) 108 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader)) 139 sys.meta_path.append(importlib.machinery.PathFinder) [all …]
|
/external/python/cpython3/Lib/idlelib/ |
D | pathbrowser.py | 1 import importlib.machinery 84 suffixes = importlib.machinery.EXTENSION_SUFFIXES[:] 85 suffixes += importlib.machinery.SOURCE_SUFFIXES 86 suffixes += importlib.machinery.BYTECODE_SUFFIXES
|
/external/python/cpython3/Lib/test/ |
D | test_cmd_line_script.py | 5 import importlib.machinery 153 expected = repr(importlib.machinery.BuiltinImporter).encode("utf-8") 166 expected = repr(importlib.machinery.BuiltinImporter).encode("utf-8") 221 importlib.machinery.SourceFileLoader, 234 importlib.machinery.SourceFileLoader) 244 importlib.machinery.SourcelessFileLoader) 251 importlib.machinery.SourceFileLoader) 261 importlib.machinery.SourcelessFileLoader) 319 importlib.machinery.SourceFileLoader, 344 importlib.machinery.SourceFileLoader, [all …]
|
/external/angle/src/compiler/translator/TranslatorMetalDirect/ |
D | RewritePipelines.cpp | 146 const ModifiedStructMachinery &machinery = modifiedMachineries.at(i); in exec() local 147 ASSERT(machinery.modifiedStruct); in exec() 150 &CreateStructTypeVariable(mSymbolTable, *machinery.modifiedStruct)}); in exec() 154 ASSERT(machinery.funcOriginalToModified); in exec() 155 ASSERT(!machinery.funcModifiedToOriginal); in exec() 156 seq.push_back(machinery.funcOriginalToModified); in exec() 160 ASSERT(machinery.funcModifiedToOriginal); in exec() 161 ASSERT(!machinery.funcOriginalToModified); in exec() 162 seq.push_back(machinery.funcModifiedToOriginal); in exec() 167 mInfo.funcOriginalToModified = getFunction(machinery.funcOriginalToModified); in exec() [all …]
|