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

Method _create_module

bpython/curtsiesfrontend/repl.py:268–275  ·  view source on GitHub ↗
(self, spec)

Source from the content-addressed store, hash-verified

266 return getattr(self.loader, name)
267
268 def _create_module(self, spec):
269 module_object = self.loader.create_module(spec)
270 if (
271 getattr(spec, "origin", None) is not None
272 and spec.origin != "builtin"
273 ):
274 self.watcher.track_module(spec.origin)
275 return module_object
276
277
278class ImportFinder:

Callers

nothing calls this directly

Calls 1

track_moduleMethod · 0.80

Tested by

no test coverage detected