MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / read

Method read

tools/python-3.11.9-amd64/Lib/zipfile.py:1524–1527  ·  view source on GitHub ↗

Return file bytes for name.

(self, name, pwd=None)

Source from the content-addressed store, hash-verified

1522 self._didModify = True
1523
1524 def read(self, name, pwd=None):
1525 """Return file bytes for name."""
1526 with self.open(name, "r", pwd) as fp:
1527 return fp.read()
1528
1529 def open(self, name, mode="r", pwd=None, *, force_zip64=False):
1530 """Return file-like object for 'name'.

Callers 11

get_exe_prefixesFunction · 0.95
extract_zipped_pathsFunction · 0.95
_EndRecData64Function · 0.45
_EndRecDataFunction · 0.45
readMethod · 0.45
_init_decrypterMethod · 0.45
_read2Method · 0.45
testzipMethod · 0.45
openMethod · 0.45
read_textMethod · 0.45
read_bytesMethod · 0.45

Calls 1

openMethod · 0.95

Tested by

no test coverage detected