MCPcopy
hub / github.com/cool-RR/PySnooper / read_text

Method read_text

tests/mini_toolbox/pathlib.py:1398–1403  ·  view source on GitHub ↗

Open the file in text mode, read it, and close the file.

(self, encoding=None, errors=None)

Source from the content-addressed store, hash-verified

1396 return f.read()
1397
1398 def read_text(self, encoding=None, errors=None):
1399 """
1400 Open the file in text mode, read it, and close the file.
1401 """
1402 with self.open(mode='r', encoding=encoding, errors=errors) as f:
1403 return f.read()
1404
1405 def write_bytes(self, data):
1406 """

Callers

nothing calls this directly

Calls 1

openMethod · 0.95

Tested by

no test coverage detected