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

Function _register

Lib/importlib/abc.py:25–33  ·  view source on GitHub ↗
(abstract_cls, *classes)

Source from the content-addressed store, hash-verified

23
24
25def _register(abstract_cls, *classes):
26 for cls in classes:
27 abstract_cls.register(cls)
28 if _frozen_importlib is not None:
29 try:
30 frozen_cls = getattr(_frozen_importlib, cls.__name__)
31 except AttributeError:
32 frozen_cls = getattr(_frozen_importlib_external, cls.__name__)
33 abstract_cls.register(frozen_cls)
34
35
36class MetaPathFinder(metaclass=abc.ABCMeta):

Callers 1

abc.pyFile · 0.85

Calls 2

getattrFunction · 0.85
registerMethod · 0.45

Tested by

no test coverage detected