(fp: IO[bytes], length: int)
| 977 | |
| 978 | |
| 979 | def must_read(fp: IO[bytes], length: int) -> bytes: |
| 980 | ret = fp.read(length) |
| 981 | if len(ret) < length: |
| 982 | raise EOFError("unexpectedly reached end of file") |
| 983 | return ret |
| 984 | |
| 985 | |
| 986 | @functools.lru_cache(maxsize=None) |
nothing calls this directly
no outgoing calls
no test coverage detected