/external/python/cpython3/Lib/test/test_importlib/ |
D | test_util.py | 568 self.assertEqual(self.util.cache_from_source(path, optimization=''), 575 self.util.cache_from_source('whatever.py') 582 self.assertEqual(self.util.cache_from_source(path, optimization=''), 591 self.assertEqual(self.util.cache_from_source(path, False), 592 self.util.cache_from_source(path, optimization=1)) 593 self.assertEqual(self.util.cache_from_source(path, True), 594 self.util.cache_from_source(path, optimization='')) 598 self.util.cache_from_source(path, False) 600 self.util.cache_from_source(path, True) 605 self.assertEqual(self.util.cache_from_source(path, optimization=''), [all …]
|
D | test_api.py | 253 cached = self.util.cache_from_source(path) 274 cached = self.util.cache_from_source(init_path) 304 cached = self.util.cache_from_source(bad_path) 333 cached = self.util.cache_from_source(init_path)
|
D | test_spec.py | 70 self.cached = self.util.cache_from_source(self.path) 203 expected = self.util.cache_from_source(self.path) 242 self.cached = self.util.cache_from_source(self.path) 502 self.cached = self.util.cache_from_source(self.path)
|
D | test_abc.py | 710 self.bytecode_path = self.util.cache_from_source(self.path) 756 self.cached = self.util.cache_from_source(self.path) 895 bytecode_path = self.util.cache_from_source(self.path)
|
/external/python/cpython3/Tools/scripts/ |
D | checkpyc.py | 11 cache_from_source = (importlib.util.cache_from_source if sys.implementation.cache_tag variable 42 name_c = cache_from_source(name)
|
/external/python/cpython3/Tools/importbench/ |
D | importbench.py | 68 assert not os.path.exists(imp.cache_from_source(mapping[name])) 83 bytecode_path = imp.cache_from_source(module.__file__) 111 os.unlink(imp.cache_from_source(mapping[name])) 113 assert not os.path.exists(imp.cache_from_source(mapping[name])) 124 os.unlink(imp.cache_from_source(module.__file__)) 144 assert os.path.exists(imp.cache_from_source(mapping[name]))
|
/external/python/cpython3/Lib/test/ |
D | test_compileall.py | 34 self.bc_path = importlib.util.cache_from_source(self.source_path) 38 self.bc_path2 = importlib.util.cache_from_source(self.source_path2) 152 cached = importlib.util.cache_from_source(self.source_path, 155 cached2 = importlib.util.cache_from_source(self.source_path2, 158 cached3 = importlib.util.cache_from_source(self.source_path3, 283 path = importlib.util.cache_from_source(fn) 287 path = importlib.util.cache_from_source(fn) 314 pycpath = importlib.util.cache_from_source(bazfn) 381 pycpath = importlib.util.cache_from_source(self.barfn) 478 pyc = importlib.util.cache_from_source(bazfn) [all …]
|
D | test_pkgimport.py | 9 from importlib.util import cache_from_source 42 compiled_path = cache_from_source(self.module_path)
|
D | test_py_compile.py | 57 self.cache_path = importlib.util.cache_from_source(self.source_path) 137 importlib.util.cache_from_source(bad_coding))) 158 cache_path = importlib.util.cache_from_source(weird_path)
|
D | test_imp.py | 181 imp.cache_from_source(temp_mod_name + '.py')) 420 self.assertEqual(imp.cache_from_source(path, True), expect)
|
D | test_runpy.py | 339 "__cached__": importlib.util.cache_from_source(mod_fname), 544 "__cached__": importlib.util.cache_from_source(mod_fname),
|
D | test_reprlib.py | 266 len(importlib.util.cache_from_source("x.py")) - len("x.py"))
|
/external/python/cpython3/Lib/test/test_import/ |
D | __init__.py | 348 compiled = importlib.util.cache_from_source(source) 452 cached_path = importlib.util.cache_from_source(path) 470 cached_path = importlib.util.cache_from_source(path) 485 cached_path = importlib.util.cache_from_source(path) 522 os.rename(importlib.util.cache_from_source(path), bytecode_only) 544 compiled_name = importlib.util.cache_from_source(file_name) 784 pyc_path = importlib.util.cache_from_source(self.source) 800 pyc_path = importlib.util.cache_from_source(self.source) 810 pyc_file = importlib.util.cache_from_source(self.source) 839 pyc_file = importlib.util.cache_from_source(TESTFN + '.py') [all …]
|
/external/python/cpython3/Lib/test/test_importlib/source/ |
D | test_file_loader.py | 187 self.assertEqual(self.util.cache_from_source(file_path), 191 pycache = os.path.dirname(self.util.cache_from_source(file_path)) 201 compiled = self.util.cache_from_source(source) 245 pyc = self.util.cache_from_source(source) 277 pyc = self.util.cache_from_source(source) 301 pyc = self.util.cache_from_source(source) 332 pyc = self.util.cache_from_source(source) 393 bytecode_path = self.util.cache_from_source(mapping[name]) 641 bytecode_path = self.util.cache_from_source(mapping['_temp']) 659 bytecode_path = self.util.cache_from_source(mapping['_temp'])
|
/external/python/cpython3/Lib/distutils/tests/ |
D | test_install_lib.py | 47 pyc_file = importlib.util.cache_from_source('foo.py', optimization='') 48 pyc_opt_file = importlib.util.cache_from_source('foo.py',
|
/external/python/cpython3/Lib/distutils/command/ |
D | install_lib.py | 168 bytecode_files.append(importlib.util.cache_from_source( 171 bytecode_files.append(importlib.util.cache_from_source(
|
D | build_py.py | 316 outputs.append(importlib.util.cache_from_source( 319 outputs.append(importlib.util.cache_from_source(
|
/external/python/cpython3/Lib/ |
D | py_compile.py | 127 cfile = importlib.util.cache_from_source(file, 130 cfile = importlib.util.cache_from_source(file)
|
D | imp.py | 72 def cache_from_source(path, debug_override=None): function 88 return util.cache_from_source(path, debug_override)
|
D | compileall.py | 136 cfile = importlib.util.cache_from_source( 139 cfile = importlib.util.cache_from_source(fullname)
|
/external/ply/ply/test/ |
D | testlex.py | 20 from importlib.util import cache_from_source 23 cache_from_source = None variable 32 fullpath = cache_from_source(filename, optimization=optimization) 34 fullpath = cache_from_source(filename, ext=='.pyc')
|
D | testyacc.py | 27 fullpath = importlib.util.cache_from_source(filename, ext=='.pyc')
|
/external/python/cpython3/Lib/distutils/ |
D | util.py | 435 cfile = importlib.util.cache_from_source( 438 cfile = importlib.util.cache_from_source(file)
|
/external/python/cpython3/Lib/importlib/ |
D | util.py | 9 from ._bootstrap_external import cache_from_source
|
D | _bootstrap_external.py | 271 def cache_from_source(path, debug_override=None, *, optimization=None): function 372 return cache_from_source(filename) 807 bytecode_path = cache_from_source(source_path)
|