MCPcopy Create free account
hub / github.com/bpython/bpython / _find_spec

Method _find_spec

bpython/curtsiesfrontend/repl.py:290–297  ·  view source on GitHub ↗
(self, fullname, path, target=None)

Source from the content-addressed store, hash-verified

288 return getattr(self.finder, name)
289
290 def _find_spec(self, fullname, path, target=None):
291 # Attempt to find the spec
292 spec = self.finder.find_spec(fullname, path, target)
293 if spec is not None:
294 if getattr(spec, "loader", None) is not None:
295 # Patch the loader to enable reloading
296 spec.loader = ImportLoader(self.watcher, spec.loader)
297 return spec
298
299
300def _process_ps(ps, default_ps: str):

Callers

nothing calls this directly

Calls 1

ImportLoaderClass · 0.85

Tested by

no test coverage detected