(self, offset, whence=0)
| 766 | return self._pos |
| 767 | |
| 768 | def seek(self, offset, whence=0): |
| 769 | with self._lock: |
| 770 | if self._writing(): |
| 771 | raise ValueError("Can't reposition in the ZIP file while " |
| 772 | "there is an open writing handle on it. " |
| 773 | "Close the writing handle before trying to read.") |
| 774 | self._file.seek(offset, whence) |
| 775 | self._pos = self._file.tell() |
| 776 | return self._pos |
| 777 | |
| 778 | def read(self, n=-1): |
| 779 | with self._lock: |