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

Method _find

Lib/test/test_importlib/source/test_finder.py:199–205  ·  view source on GitHub ↗
(self, finder, name, loader_only=False)

Source from the content-addressed store, hash-verified

197 NOT_FOUND = (None, [])
198
199 def _find(self, finder, name, loader_only=False):
200 spec = finder.find_spec(name)
201 if spec is None:
202 return self.NOT_FOUND
203 if loader_only:
204 return spec.loader
205 return spec.loader, spec.submodule_search_locations
206
207
208(Frozen_FinderTestsPEP420,

Callers

nothing calls this directly

Calls 1

find_specMethod · 0.45

Tested by

no test coverage detected