(self)
| 221 | raise OSError(errno.EBADF, "sys.stdin is read-only") |
| 222 | |
| 223 | def close(self) -> None: |
| 224 | # hack to make closing stdin a nop |
| 225 | # This is useful for multiprocessing.Process, which does work |
| 226 | # for the most part, although output from other processes is |
| 227 | # discarded. |
| 228 | pass |
| 229 | |
| 230 | @property |
| 231 | def encoding(self) -> str: |