(s)
| 1566 | else: |
| 1567 | # Use backslashreplace error handling on write |
| 1568 | def out(s): |
| 1569 | s = str(s.encode(encoding, 'backslashreplace'), encoding) |
| 1570 | save_stdout.write(s) |
| 1571 | sys.stdout = self._fakeout |
| 1572 | |
| 1573 | # Patch pdb.set_trace to restore sys.stdout during interactive |