MCPcopy Index your code
hub / github.com/python/cpython / _get_cached

Function _get_cached

Lib/importlib/_bootstrap_external.py:358–367  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

356
357
358def _get_cached(filename):
359 if filename.endswith(tuple(SOURCE_SUFFIXES)):
360 try:
361 return cache_from_source(filename)
362 except NotImplementedError:
363 pass
364 elif filename.endswith(tuple(BYTECODE_SUFFIXES)):
365 return filename
366 else:
367 return None
368
369
370def _calc_mode(path):

Callers

nothing calls this directly

Calls 2

cache_from_sourceFunction · 0.85
endswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…