MCPcopy Index your code
hub / github.com/RustPython/RustPython / _load_json

Method _load_json

Lib/importlib/metadata/__init__.py:647–651  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

645 return self._load_json('direct_url.json')
646
647 def _load_json(self, filename):
648 return pass_none(json.loads)(
649 self.read_text(filename),
650 object_hook=lambda data: types.SimpleNamespace(**data),
651 )
652
653
654class DistributionFinder(MetaPathFinder):

Callers 1

originMethod · 0.95

Calls 2

read_textMethod · 0.95
pass_noneFunction · 0.85

Tested by

no test coverage detected