(self, output: str | bytes)
| 147 | self._trace_log_pos = min(max(0, pos), len(self._trace_log)) |
| 148 | |
| 149 | def peak(self, output: str | bytes) -> bool: |
| 150 | if self.peek_output: |
| 151 | if isinstance(output, bytes): |
| 152 | try: |
| 153 | output = output.decode('UTF-8') |
| 154 | except UnicodeDecodeError: |
| 155 | return False |
| 156 | |
| 157 | _cmd_output(output) |
| 158 | |
| 159 | sys.stdout.write(output) |
| 160 | sys.stdout.flush() |
| 161 | |
| 162 | return True |
| 163 | |
| 164 | def poll(self) -> None: |
| 165 | self.make_sure_we_are_executing() |
no test coverage detected