Scoped timeout setter. Sets the timeout within the scope, and restores it when leaving the scope.
(self, timeout)
| 201 | return _countdown_handler(self, timeout) |
| 202 | |
| 203 | def local(self, timeout): |
| 204 | """ |
| 205 | Scoped timeout setter. Sets the timeout within the scope, |
| 206 | and restores it when leaving the scope. |
| 207 | """ |
| 208 | if timeout is self.default or timeout == self.timeout: |
| 209 | return _DummyContext |
| 210 | |
| 211 | return _local_handler(self, timeout) |
no test coverage detected