(s)
| 1539 | else: |
| 1540 | # Use backslashreplace error handling on write |
| 1541 | def out(s): |
| 1542 | s = str(s.encode(encoding, 'backslashreplace'), encoding) |
| 1543 | save_stdout.write(s) |
| 1544 | sys.stdout = self._fakeout |
| 1545 | |
| 1546 | # Patch pdb.set_trace to restore sys.stdout during interactive |