(self, op: str, states: Tuple[str, ...])
| 381 | ) |
| 382 | |
| 383 | def _assert_state(self, op: str, states: Tuple[str, ...]) -> None: |
| 384 | assert ( |
| 385 | self._state in states |
| 386 | ), "cannot {} in state {!r}: expected one of {}".format( |
| 387 | op, self._state, ", ".join(states) |
| 388 | ) |
| 389 | |
| 390 | def start(self) -> None: |
| 391 | """Start capturing on targetfd using memorized tmpfile.""" |