Function decorator to apply certain suppressions to a whole function.
(self, func)
| 2267 | self._orig_showmsg(use_warnmsg) |
| 2268 | |
| 2269 | def __call__(self, func): |
| 2270 | """ |
| 2271 | Function decorator to apply certain suppressions to a whole |
| 2272 | function. |
| 2273 | """ |
| 2274 | @wraps(func) |
| 2275 | def new_func(*args, **kwargs): |
| 2276 | with self: |
| 2277 | return func(*args, **kwargs) |
| 2278 | |
| 2279 | return new_func |
| 2280 | |
| 2281 | |
| 2282 | @contextlib.contextmanager |
nothing calls this directly
no outgoing calls
no test coverage detected