()
| 73 | # the bytes and then decode each line individually instead of just decoding |
| 74 | # the whole thing at once. |
| 75 | def stdout_read() -> None: |
| 76 | try: |
| 77 | assert p.stdout is not None |
| 78 | for byte_line in (read_no_interrupt(p.stdout) or b"").splitlines(): |
| 79 | line = byte_line.decode(enc, "replace") |
| 80 | print(line, file=sys.stdout) |
| 81 | except Exception as e: |
| 82 | print(f"Error reading stdout: {e}", file=sys.stderr) |
| 83 | |
| 84 | def stderr_read() -> None: |
| 85 | try: |
nothing calls this directly
no test coverage detected
searching dependent graphs…