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

Method _load_json

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

Source from the content-addressed store, hash-verified

730 return self._load_json('direct_url.json')
731
732 def _load_json(self, filename):
733 # Deferred for performance (python/importlib_metadata#503)
734 import json
735
736 return pass_none(json.loads)(
737 self.read_text(filename),
738 object_hook=lambda data: types.SimpleNamespace(**data),
739 )
740
741
742class DistributionFinder(MetaPathFinder):

Callers 1

originMethod · 0.95

Calls 2

read_textMethod · 0.95
pass_noneFunction · 0.85

Tested by

no test coverage detected