(text)
| 1715 | os.system(cmd + ' "' + filename + '"') |
| 1716 | |
| 1717 | def _escape_stdout(text): |
| 1718 | # Escape non-encodable characters to avoid encoding errors later |
| 1719 | encoding = getattr(sys.stdout, 'encoding', None) or 'utf-8' |
| 1720 | return text.encode(encoding, 'backslashreplace').decode(encoding) |
| 1721 | |
| 1722 | def ttypager(text): |
| 1723 | """Page through text on a text terminal.""" |
no test coverage detected