/external/python/setuptools/setuptools/ |
D | _imp.py | 7 import importlib.util 8 import importlib.machinery 22 importlib.machinery.PathFinder().find_spec 24 importlib.util.find_spec 35 spec = importlib.util.spec_from_loader('__init__.py', spec.loader) 41 spec.loader, importlib.machinery.FrozenImporter): 46 spec.loader, importlib.machinery.BuiltinImporter): 53 mode = 'r' if suffix in importlib.machinery.SOURCE_SUFFIXES else 'rb' 55 if suffix in importlib.machinery.SOURCE_SUFFIXES: 57 elif suffix in importlib.machinery.BYTECODE_SUFFIXES: [all …]
|
D | py34compat.py | 1 import importlib 4 import importlib.util 10 module_from_spec = importlib.util.module_from_spec
|
/external/python/setuptools/_distutils_hack/ |
D | __init__.py | 48 import importlib 55 importlib.import_module('distutils') 58 core = importlib.import_module('distutils.core') 96 import importlib 97 import importlib.abc 98 import importlib.util 101 mod = importlib.import_module('setuptools._distutils') 113 class DistutilsLoader(importlib.abc.Loader): 122 return importlib.util.spec_from_loader(
|
/external/python/cpython3/Lib/ |
D | py_compile.py | 7 import importlib._bootstrap_external 8 import importlib.machinery 9 import importlib.util 129 cfile = importlib.util.cache_from_source(file, 132 cfile = importlib.util.cache_from_source(file) 141 loader = importlib.machinery.SourceFileLoader('<py_compile>', file) 162 bytecode = importlib._bootstrap_external._code_to_timestamp_pyc( 165 source_hash = importlib.util.source_hash(source_bytes) 166 bytecode = importlib._bootstrap_external._code_to_hash_pyc( 171 mode = importlib._bootstrap_external._calc_mode(file) [all …]
|
D | imp.py | 19 from importlib._bootstrap import _ERR_MSG, _exec, _load, _builtin_from_name 20 from importlib._bootstrap_external import SourcelessFileLoader 22 from importlib import machinery 23 from importlib import util 24 import importlib 315 return importlib.reload(module) 336 import importlib.machinery 337 loader = importlib.machinery.ExtensionFileLoader(name, path) 341 spec = importlib.machinery.ModuleSpec(
|
D | pkgutil.py | 5 import importlib 6 import importlib.util 7 import importlib.machinery 35 return importlib.util.spec_from_loader(name, loader) 46 if magic != importlib.util.MAGIC_NUMBER: 185 importlib.machinery.FileFinder, _iter_file_finder_modules) 192 imp = importlib.import_module('imp') 449 pkg = importlib.import_module(pkg_name) 495 spec = importlib.util.find_spec(fullname) 621 spec = importlib.util.find_spec(package) [all …]
|
/external/python/cpython3/Tools/importbench/ |
D | importbench.py | 10 import importlib 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)) [all …]
|
/external/rust/crates/grpcio-sys/grpc/tools/distrib/python/grpcio_tools/grpc_tools/ |
D | protoc.py | 44 import importlib 45 import importlib.abc 46 import importlib.machinery 83 module = importlib.import_module(module_name) 92 module = importlib.import_module(module_name) 102 class ProtoLoader(importlib.abc.Loader): 142 importlib.import_module(module_name) 145 class ProtoFinder(importlib.abc.MetaPathFinder): 162 return importlib.machinery.ModuleSpec(
|
/external/python/cpython3/Lib/test/test_import/ |
D | __init__.py | 5 import importlib.util 6 from importlib._bootstrap_external import _get_sourcefile 71 importlib.invalidate_caches() 86 from importlib import something_that_should_not_exist_anywhere 168 importlib.invalidate_caches() 213 importlib.invalidate_caches() 241 importlib.invalidate_caches() 304 self.assertRaises(ZeroDivisionError, importlib.reload, mod) 333 importlib.invalidate_caches() 371 compiled = importlib.util.cache_from_source(source) [all …]
|
/external/libabigail/tests/ |
D | mockfedabipkgdiff.in | 74 import importlib.machinery 75 loader = importlib.machinery.SourceFileLoader(name, path) 76 import importlib.util 77 spec = importlib.util.spec_from_loader(name, loader) 78 module = importlib.util.module_from_spec(spec) 86 import importlib.machinery 87 loader = importlib.machinery.SourceFileLoader(name, path)
|
/external/pigweed/third_party/emboss/ |
D | embossc_runner.py | 16 import importlib.util 18 loader = importlib.machinery.SourceFileLoader("embossc", sys.argv[1]) 19 spec = importlib.util.spec_from_loader(loader.name, loader) 20 main_module = importlib.util.module_from_spec(spec)
|
/external/python/cpython2/Lib/test/ |
D | test_importlib.py | 3 import importlib 125 module = importlib.import_module('top_level') 135 module = importlib.import_module(name) 142 module = importlib.import_module('.d', 'a.b.c') 150 module = importlib.import_module('..c', 'a.b') 161 module = importlib.import_module(name, pkg_name) 167 self.assertRaises(TypeError, importlib.import_module, '.support')
|
/external/armnn/python/pyarmnn/test/ |
D | test_version.py | 5 import importlib 10 importlib.reload(v) 19 importlib.reload(v) 31 importlib.reload(v)
|
/external/python/cpython3/Lib/test/ |
D | test_zipimport.py | 4 import importlib 5 import importlib.util 40 pyc = (importlib.util.MAGIC_NUMBER + 58 pyc_file = importlib.util.cache_from_source(TESTMOD + '.py') 136 mod = importlib.import_module(".".join(modules)) 194 source_hash = importlib.util.source_hash(source) 195 bytecode = importlib._bootstrap_external._code_to_hash_pyc( 209 source_hash = importlib.util.source_hash(source) 210 bytecode = importlib._bootstrap_external._code_to_hash_pyc( 318 mod = importlib.import_module(TESTPACK) [all …]
|
D | test_doctest.py | 12 import importlib 13 import importlib.abc 14 import importlib.util 736 mod = importlib.import_module(pkg_name) 2702 class TestImporter(importlib.abc.MetaPathFinder, importlib.abc.ResourceLoader): 2705 return importlib.util.spec_from_file_location(fullname, path, loader=self)
|
D | test_cmd_line_script.py | 4 import importlib 5 import importlib.machinery 82 importlib.invalidate_caches() 89 importlib.invalidate_caches() 155 expected = repr(importlib.machinery.BuiltinImporter).encode("utf-8") 168 expected = repr(importlib.machinery.BuiltinImporter).encode("utf-8") 223 importlib.machinery.SourceFileLoader, 236 importlib.machinery.SourceFileLoader) 246 importlib.machinery.SourcelessFileLoader) 253 importlib.machinery.SourceFileLoader) [all …]
|
/external/python/cpython3/Doc/library/ |
D | importlib.rst | 1 :mod:`!importlib` --- The implementation of :keyword:`!import` 4 .. module:: importlib 12 **Source code:** :source:`Lib/importlib/__init__.py` 19 The purpose of the :mod:`importlib` package is two-fold. One is to provide the 102 :func:`importlib.__import__`. This means all semantics of the function are 103 derived from :func:`importlib.__import__`. The most important difference 136 Use :func:`importlib.util.find_spec` instead. 211 a :class:`~importlib.machinery.ModuleSpec`. 214 :mod:`importlib.abc` -- Abstract base classes related to import 217 .. module:: importlib.abc [all …]
|
D | importlib.metadata.rst | 4 Using :mod:`!importlib.metadata` 7 .. module:: importlib.metadata 8 :synopsis: The implementation of the importlib metadata. 12 ``importlib.metadata`` is no longer provisional. 14 **Source code:** :source:`Lib/importlib/metadata/__init__.py` 16 ``importlib.metadata`` is a library that provides for access to installed 20 :mod:`importlib.resources` in Python 3.7 53 >>> from importlib.metadata import version # doctest: +SKIP 214 <importlib.metadata._hooks.PathDistribution object at 0x101e0cef0> 263 …{'importlib_metadata': ['importlib-metadata'], 'yaml': ['PyYAML'], 'jaraco': ['jaraco.classes', 'j… [all …]
|
/external/python/cpython3/Lib/test/support/ |
D | import_helper.py | 2 import importlib 3 import importlib.util 49 unlink(importlib.util.cache_from_source(source, optimization=opt)) 59 pyc_file = importlib.util.cache_from_source(source) 77 return importlib.import_module(name) 138 return importlib.import_module(name)
|
/external/python/cpython3/Lib/test/test_importlib/extension/ |
D | test_case_sensitivity.py | 1 from importlib import _bootstrap_external 7 importlib = util.import_importlib('importlib') variable 43 ) = util.test_both(ExtensionModuleCaseSensitivityTest, importlib=importlib,
|
/external/python/cpython3/Lib/test/test_importlib/source/ |
D | test_case_sensitivity.py | 6 importlib = util.import_importlib('importlib') variable 75 ) = util.test_both(CaseSensitivityTestPEP302, importlib=importlib, 87 ) = util.test_both(CaseSensitivityTestPEP451, importlib=importlib,
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | test_main.py | 7 import importlib.metadata 15 from importlib.metadata import ( 57 importlib.import_module('does_not_exist') 73 assert ep.load() is importlib.metadata 199 importlib.metadata.distributions() 215 list(importlib.metadata.distributions()) 221 self.ep = importlib.metadata.EntryPoint('name', 'value', 'group')
|
/external/pigweed/pw_env_setup/py/ |
D | python_packages_test.py | 17 import importlib.metadata 45 toml_version = importlib.metadata.version('toml') 70 toml_version = importlib.metadata.version('toml') 86 toml_version = importlib.metadata.version('toml')
|
/external/pigweed/third_party/nanopb/ |
D | generate_nanopb_proto.py | 28 import importlib.util 36 spec = importlib.util.spec_from_file_location( 40 proto_module = importlib.util.module_from_spec(spec)
|
/external/markdown/ |
D | setup.py | 32 import importlib.util 33 spec = importlib.util.spec_from_file_location('__meta__', module_path) 34 meta = importlib.util.module_from_spec(spec)
|