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

Method _add_badmodule

Lib/modulefinder.py:358–364  ·  view source on GitHub ↗
(self, name, caller)

Source from the content-addressed store, hash-verified

356 return m
357
358 def _add_badmodule(self, name, caller):
359 if name not in self.badmodules:
360 self.badmodules[name] = {}
361 if caller:
362 self.badmodules[name][caller.__name__] = 1
363 else:
364 self.badmodules[name]["-"] = 1
365
366 def _safe_import_hook(self, name, caller, fromlist, level=-1):
367 # wrapper for self.import_hook() that won't raise ImportError

Callers 1

_safe_import_hookMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected