(self, *_)
| 83 | return self |
| 84 | |
| 85 | def __exit__(self, *_): |
| 86 | if self._use_signal: |
| 87 | signal.alarm(0) |
| 88 | signal.signal(signal.SIGALRM, self._prev) |
| 89 | else: |
| 90 | self._timer.cancel() |
| 91 | |
| 92 | def _handler(self, signum, frame): |
| 93 | raise TimeoutError(self.msg) |
nothing calls this directly
no outgoing calls
no test coverage detected