(self, n)
| 1056 | return data |
| 1057 | |
| 1058 | def _read2(self, n): |
| 1059 | if self._compress_left <= 0: |
| 1060 | return b'' |
| 1061 | |
| 1062 | n = max(n, self.MIN_READ_SIZE) |
| 1063 | n = min(n, self._compress_left) |
| 1064 | |
| 1065 | data = self._fileobj.read(n) |
| 1066 | self._compress_left -= len(data) |
| 1067 | if not data: |
| 1068 | raise EOFError |
| 1069 | |
| 1070 | if self._decrypter is not None: |
| 1071 | data = self._decrypter(data) |
| 1072 | return data |
| 1073 | |
| 1074 | def close(self): |
| 1075 | try: |