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

Method _add_badmodule

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

Source from the content-addressed store, hash-verified

361 return m
362
363 def _add_badmodule(self, name, caller):
364 if name not in self.badmodules:
365 self.badmodules[name] = {}
366 if caller:
367 self.badmodules[name][caller.__name__] = 1
368 else:
369 self.badmodules[name]["-"] = 1
370
371 def _safe_import_hook(self, name, caller, fromlist, level=-1):
372 # 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