MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / find_class

Method find_class

tools/python-3.11.9-amd64/Lib/pickle.py:1572–1584  ·  view source on GitHub ↗
(self, module, name)

Source from the content-addressed store, hash-verified

1570 self.append(obj)
1571
1572 def find_class(self, module, name):
1573 # Subclasses may override this.
1574 sys.audit('pickle.find_class', module, name)
1575 if self.proto < 3 and self.fix_imports:
1576 if (module, name) in _compat_pickle.NAME_MAPPING:
1577 module, name = _compat_pickle.NAME_MAPPING[(module, name)]
1578 elif module in _compat_pickle.IMPORT_MAPPING:
1579 module = _compat_pickle.IMPORT_MAPPING[module]
1580 __import__(module, level=0)
1581 if self.proto >= 4:
1582 return _getattribute(sys.modules[module], name)[0]
1583 else:
1584 return getattr(sys.modules[module], name)
1585
1586 def load_reduce(self):
1587 stack = self.stack

Callers 4

load_instMethod · 0.95
load_globalMethod · 0.95
load_stack_globalMethod · 0.95
get_extensionMethod · 0.95

Calls 2

__import__Function · 0.85
_getattributeFunction · 0.85

Tested by

no test coverage detected