(fp: IO[bytes], length: int)
| 874 | |
| 875 | |
| 876 | def must_read(fp: IO[bytes], length: int) -> bytes: |
| 877 | ret = fp.read(length) |
| 878 | if len(ret) < length: |
| 879 | raise Exception("unexpectedly reached end of file") |
| 880 | return ret |
| 881 | |
| 882 | |
| 883 | @functools.lru_cache(maxsize=None) |
nothing calls this directly
no outgoing calls
no test coverage detected