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

Method restore

Lib/test/pickletester.py:140–147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138
139 # Restore previous registration for code.
140 def restore(self):
141 code = self.code
142 curpair = copyreg._inverted_registry.get(code)
143 if curpair is not None:
144 copyreg.remove_extension(curpair[0], curpair[1], code)
145 pair = self.pair
146 if pair is not None:
147 copyreg.add_extension(pair[0], pair[1], code)
148
149class pickling_metaclass(type):
150 def __eq__(self, other):

Callers 3

produce_global_extMethod · 0.95
test_invalid_inputMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected