(path: Path, read_only: bool = False)
| 566 | |
| 567 | @contextmanager |
| 568 | def open_raw_session(path: Path, read_only: bool = False) -> None: |
| 569 | with open(path) as stream: |
| 570 | raw_session = json.load(stream) |
| 571 | |
| 572 | yield raw_session |
| 573 | |
| 574 | if not read_only: |
| 575 | with open(path, 'w') as stream: |
| 576 | json.dump(raw_session, stream) |
| 577 | |
| 578 | |
| 579 | def read_stderr(env: Environment) -> bytes: |
no test coverage detected