(self, input)
| 91 | |
| 92 | if IS_WIN: |
| 93 | def send(self, input): |
| 94 | if not self.stdin: |
| 95 | return None |
| 96 | |
| 97 | try: |
| 98 | x = msvcrt.get_osfhandle(self.stdin.fileno()) |
| 99 | (_, written) = WriteFile(x, input) |
| 100 | except ValueError: |
| 101 | return self._close('stdin') |
| 102 | except Exception as ex: |
| 103 | if getattr(ex, "args", None) and ex.args[0] in (109, errno.ESHUTDOWN): |
| 104 | return self._close('stdin') |
| 105 | raise |
| 106 | |
| 107 | return written |
| 108 | |
| 109 | def _recv(self, which, maxsize): |
| 110 | conn, maxsize = self.get_conn_maxsize(which, maxsize) |
no test coverage detected