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

Function inner

Lib/unittest/signals.py:59–65  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

57 if method is not None:
58 @wraps(method)
59 def inner(*args, **kwargs):
60 initial = signal.getsignal(signal.SIGINT)
61 removeHandler()
62 try:
63 return method(*args, **kwargs)
64 finally:
65 signal.signal(signal.SIGINT, initial)
66 return inner
67
68 global _interrupt_handler

Callers

nothing calls this directly

Calls 2

removeHandlerFunction · 0.85
methodFunction · 0.85

Tested by

no test coverage detected