(self)
| 691 | pass |
| 692 | |
| 693 | def _FeedInput(self): |
| 694 | try: |
| 695 | while True: |
| 696 | rd, unused_w, unused_x = select.select([sys.stdin], [], [], 0.5) |
| 697 | if self._stop.is_set(): |
| 698 | break |
| 699 | |
| 700 | if sys.stdin in rd: |
| 701 | data = sys.stdin.buffer.read() |
| 702 | if not data: |
| 703 | self.send(json.dumps({'type': 'stdin_close'})) |
| 704 | break |
| 705 | self.send(data, binary=True) |
| 706 | except (KeyboardInterrupt, RuntimeError): |
| 707 | pass |
| 708 | |
| 709 | def opened(self): |
| 710 | self._input_thread.start() |
nothing calls this directly
no outgoing calls
no test coverage detected