(self, n=-1)
| 907 | return self._pos |
| 908 | |
| 909 | def read(self, n=-1): |
| 910 | with self._lock: |
| 911 | if self._writing(): |
| 912 | raise ValueError("Can't read from the ZIP file while there " |
| 913 | "is an open writing handle on it. " |
| 914 | "Close the writing handle before trying to read.") |
| 915 | self._file.seek(self._pos) |
| 916 | data = self._file.read(n) |
| 917 | self._pos = self._file.tell() |
| 918 | return data |
| 919 | |
| 920 | def close(self): |
| 921 | if self._file is not None: |