(self, data)
| 62 | self._buf = io.StringIO() |
| 63 | |
| 64 | def write(self, data): |
| 65 | if isinstance(data, bytes): |
| 66 | data = data.decode("utf-8", errors="replace") |
| 67 | sys.stdout.write(data) |
| 68 | sys.stdout.flush() |
| 69 | self._buf.write(data) |
| 70 | |
| 71 | def flush(self): |
| 72 | sys.stdout.flush() |
no test coverage detected