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

Method read_text

Lib/zipfile/_path/__init__.py:380–383  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

378 return pathlib.Path(self.root.filename).joinpath(self.at)
379
380 def read_text(self, *args, **kwargs):
381 encoding, args, kwargs = _extract_text_encoding(*args, **kwargs)
382 with self.open('r', encoding, *args, **kwargs) as strm:
383 return strm.read()
384
385 def read_bytes(self):
386 with self.open('rb') as strm:

Callers

nothing calls this directly

Calls 3

openMethod · 0.95
_extract_text_encodingFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected