(s)
| 1491 | else: |
| 1492 | # Use backslashreplace error handling on write |
| 1493 | def out(s): |
| 1494 | s = str(s.encode(encoding, 'backslashreplace'), encoding) |
| 1495 | save_stdout.write(s) |
| 1496 | sys.stdout = self._fakeout |
| 1497 | |
| 1498 | # Patch pdb.set_trace to restore sys.stdout during interactive |