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

Function inner

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

removeHandlerFunction · 0.85
methodFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…