MCPcopy Index your code
hub / github.com/cool-RR/PySnooper / read_bytes

Method read_bytes

tests/mini_toolbox/pathlib.py:1391–1396  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1389 encoding, errors, newline)
1390
1391 def read_bytes(self):
1392 """
1393 Open the file in bytes mode, read it, and close the file.
1394 """
1395 with self.open(mode='rb') as f:
1396 return f.read()
1397
1398 def read_text(self, encoding=None, errors=None):
1399 """

Callers

nothing calls this directly

Calls 1

openMethod · 0.95

Tested by

no test coverage detected