Simply print unformatted text. This is the ultimate fallback.
(text: str, title: str = '')
| 100 | return re.sub('.\b', '', text) |
| 101 | |
| 102 | def plain_pager(text: str, title: str = '') -> None: |
| 103 | """Simply print unformatted text. This is the ultimate fallback.""" |
| 104 | encoding = getattr(sys.stdout, 'encoding', None) or 'utf-8' |
| 105 | text = text.encode(encoding, 'backslashreplace').decode(encoding) |
| 106 | text = plain(text) |
| 107 | sys.stdout.write(text) |
| 108 | |
| 109 | def get_pager(): |
| 110 | """Unconditionally return the plain pager, since _pyrepl is absent.""" |