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

Method locate

Lib/importlib/metadata/__init__.py:386–388  ·  view source on GitHub ↗

Return a path-like object for this path

(self)

Source from the content-addressed store, hash-verified

384 return self.locate().read_bytes()
385
386 def locate(self) -> SimplePath:
387 """Return a path-like object for this path"""
388 return self.dist.locate_file(self)
389
390
391class FileHash:

Callers 5

read_textMethod · 0.95
read_binaryMethod · 0.95
_test_filesMethod · 0.80
test_builtinMethod · 0.80
skip_missing_filesMethod · 0.80

Calls 1

locate_fileMethod · 0.45

Tested by 2

_test_filesMethod · 0.64
test_builtinMethod · 0.64