Searched refs:cache_from_source (Results 1 – 25 of 34) sorted by relevance
12
/third_party/python/Lib/test/test_importlib/ |
D | test_util.py | 569 self.assertEqual(self.util.cache_from_source(path, optimization=''), 576 self.util.cache_from_source('whatever.py') 583 self.assertEqual(self.util.cache_from_source(path, optimization=''), 592 self.assertEqual(self.util.cache_from_source(path, False), 593 self.util.cache_from_source(path, optimization=1)) 594 self.assertEqual(self.util.cache_from_source(path, True), 595 self.util.cache_from_source(path, optimization='')) 599 self.util.cache_from_source(path, False) 601 self.util.cache_from_source(path, True) 606 self.assertEqual(self.util.cache_from_source(path, optimization=''), [all …]
|
D | test_pkg_import.py | 9 from importlib.util import cache_from_source 42 compiled_path = cache_from_source(self.module_path)
|
D | test_api.py | 257 cached = self.util.cache_from_source(path) 278 cached = self.util.cache_from_source(init_path) 308 cached = self.util.cache_from_source(bad_path) 337 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) 510 self.cached = self.util.cache_from_source(self.path)
|
D | test_abc.py | 732 self.bytecode_path = self.util.cache_from_source(self.path) 778 self.cached = self.util.cache_from_source(self.path) 921 bytecode_path = self.util.cache_from_source(self.path)
|
/third_party/python/Lib/test/ |
D | test_compileall.py | 41 return importlib.util.cache_from_source(script, optimization=opt) 60 self.bc_path = importlib.util.cache_from_source(self.source_path) 64 self.bc_path2 = importlib.util.cache_from_source(self.source_path2) 206 cached = importlib.util.cache_from_source(self.source_path, 209 cached2 = importlib.util.cache_from_source(self.source_path2, 212 cached3 = importlib.util.cache_from_source(self.source_path3, 264 pyc_filename = importlib.util.cache_from_source(source) 289 modcode = importlib.util.cache_from_source(mod) 318 bc = importlib.util.cache_from_source(script) 337 bc = importlib.util.cache_from_source(script) [all …]
|
D | test_py_compile.py | 59 self.cache_path = importlib.util.cache_from_source(self.source_path) 139 importlib.util.cache_from_source(bad_coding))) 160 cache_path = importlib.util.cache_from_source(weird_path) 226 self.cache_path = importlib.util.cache_from_source(self.source_path)
|
D | test_imp.py | 183 imp.cache_from_source(temp_mod_name + '.py')) 433 self.assertEqual(imp.cache_from_source(path, True), expect)
|
D | test_runpy.py | 341 "__cached__": importlib.util.cache_from_source(mod_fname), 546 "__cached__": importlib.util.cache_from_source(mod_fname),
|
D | test_reprlib.py | 267 len(importlib.util.cache_from_source("x.py")) - len("x.py"))
|
/third_party/python/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]))
|
/third_party/python/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'])
|
/third_party/python/Lib/test/test_import/ |
D | __init__.py | 371 compiled = importlib.util.cache_from_source(source) 528 cached_path = importlib.util.cache_from_source(path) 546 cached_path = importlib.util.cache_from_source(path) 561 cached_path = importlib.util.cache_from_source(path) 598 os.rename(importlib.util.cache_from_source(path), bytecode_only) 620 compiled_name = importlib.util.cache_from_source(file_name) 861 pyc_path = importlib.util.cache_from_source(self.source) 877 pyc_path = importlib.util.cache_from_source(self.source) 887 pyc_file = importlib.util.cache_from_source(self.source) 916 pyc_file = importlib.util.cache_from_source(TESTFN + '.py') [all …]
|
/third_party/python/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',
|
/third_party/python/Lib/test/support/ |
D | import_helper.py | 48 unlink(importlib.util.cache_from_source(source, optimization=opt)) 58 pyc_file = importlib.util.cache_from_source(source)
|
/third_party/python/Lib/ |
D | py_compile.py | 129 cfile = importlib.util.cache_from_source(file, 132 cfile = importlib.util.cache_from_source(file)
|
D | imp.py | 73 def cache_from_source(path, debug_override=None): function 89 return util.cache_from_source(path, debug_override)
|
D | compileall.py | 212 cfile = (importlib.util.cache_from_source( 216 cfile = importlib.util.cache_from_source(fullname)
|
D | zipfile.py | 2044 pycache_opt0 = importlib.util.cache_from_source(file_py, optimization='') 2045 pycache_opt1 = importlib.util.cache_from_source(file_py, optimization=1) 2046 pycache_opt2 = importlib.util.cache_from_source(file_py, optimization=2)
|
/third_party/python/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(
|
/third_party/python/Lib/distutils/ |
D | util.py | 450 cfile = importlib.util.cache_from_source( 453 cfile = importlib.util.cache_from_source(file)
|
/third_party/python/Lib/importlib/ |
D | util.py | 9 from ._bootstrap_external import cache_from_source
|
D | _bootstrap_external.py | 380 def cache_from_source(path, debug_override=None, *, optimization=None): function 513 return cache_from_source(filename) 964 bytecode_path = cache_from_source(source_path)
|
/third_party/python/Doc/library/ |
D | imp.rst | 201 .. function:: cache_from_source(path, debug_override=None) 219 Use :func:`importlib.util.cache_from_source` instead.
|
12