(self, n)
| 1188 | return data |
| 1189 | |
| 1190 | def _read2(self, n): |
| 1191 | if self._compress_left <= 0: |
| 1192 | return b'' |
| 1193 | |
| 1194 | n = max(n, self.MIN_READ_SIZE) |
| 1195 | n = min(n, self._compress_left) |
| 1196 | |
| 1197 | data = self._fileobj.read(n) |
| 1198 | self._compress_left -= len(data) |
| 1199 | if not data: |
| 1200 | raise EOFError |
| 1201 | |
| 1202 | if self._decrypter is not None: |
| 1203 | data = self._decrypter(data) |
| 1204 | return data |
| 1205 | |
| 1206 | def close(self): |
| 1207 | try: |