A more than dumb pager function.
(data: str)
| 37 | |
| 38 | |
| 39 | def page_internal(data: str) -> None: |
| 40 | """A more than dumb pager function.""" |
| 41 | if hasattr(pydoc, "ttypager"): |
| 42 | pydoc.ttypager(data) |
| 43 | else: |
| 44 | sys.stdout.write(data) |
| 45 | |
| 46 | |
| 47 | def page(data: str, use_internal: bool = False) -> None: |