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

Method save

Lib/test/support/__init__.py:2204–2214  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2202 self.handlers = {}
2203
2204 def save(self):
2205 for signum in self.signals:
2206 handler = self.signal.getsignal(signum)
2207 if handler is None:
2208 # getsignal() returns None if a signal handler was not
2209 # registered by the Python signal module,
2210 # and the handler is not SIG_DFL nor SIG_IGN.
2211 #
2212 # Ignore the signal: we cannot restore the handler.
2213 continue
2214 self.handlers[signum] = handler
2215
2216 def restore(self):
2217 for signum, handler in self.handlers.items():

Calls

no outgoing calls