Wrap a pager func to strip the `self` arg so it can be called as a hook.
(page_func)
| 44 | |
| 45 | |
| 46 | def as_hook(page_func): |
| 47 | """Wrap a pager func to strip the `self` arg |
| 48 | |
| 49 | so it can be called as a hook. |
| 50 | """ |
| 51 | return lambda self, *args, **kwargs: page_func(*args, **kwargs) |
| 52 | |
| 53 | |
| 54 | esc_re = re.compile(r"(\x1b[^m]+m)") |
nothing calls this directly
no outgoing calls
no test coverage detected