MCPcopy Index your code
hub / github.com/python/cpython / read

Method read

Lib/zipfile/__init__.py:909–918  ·  view source on GitHub ↗
(self, n=-1)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 3

seekMethod · 0.45
readMethod · 0.45
tellMethod · 0.45

Tested by

no test coverage detected