Read up to size uncompressed bytes from the file. If size is negative or omitted, read until EOF is reached. Returns b'' if the file is already at EOF.
(self, size=-1)
| 162 | self._fp.flush() |
| 163 | |
| 164 | def read(self, size=-1): |
| 165 | """Read up to size uncompressed bytes from the file. |
| 166 | |
| 167 | If size is negative or omitted, read until EOF is reached. |
| 168 | Returns b'' if the file is already at EOF. |
| 169 | """ |
| 170 | if size is None: |
| 171 | size = -1 |
| 172 | self._check_can_read() |
| 173 | return self._buffer.read(size) |
| 174 | |
| 175 | def read1(self, size=-1): |
| 176 | """Read up to size uncompressed bytes, while trying to avoid |