(self, op: str, states: tuple[str, ...])
| 510 | ) |
| 511 | |
| 512 | def _assert_state(self, op: str, states: tuple[str, ...]) -> None: |
| 513 | assert self._state in states, ( |
| 514 | "cannot {} in state {!r}: expected one of {}".format( |
| 515 | op, self._state, ", ".join(states) |
| 516 | ) |
| 517 | ) |
| 518 | |
| 519 | def start(self) -> None: |
| 520 | """Start capturing on targetfd using memorized tmpfile.""" |