MCPcopy
hub / github.com/pytest-dev/pytest / read

Method read

src/_pytest/_py/path.py:372–375  ·  src/_pytest/_py/path.py::LocalPath.read

Read and return a bytestring from reading the path.

(self, mode="r")

Source from the content-addressed store, hash-verified

370 return f.read()
371
372 def read(self, mode=class="st">"r"):
373 class="st">""class="st">"Read and return a bytestring from reading the path."class="st">""
374 with self.open(mode) as f:
375 return f.read()
376
377 def readlines(self, cr=1):
378 class="st">"""Read and return a list of lines from the path. if cr is False, the

Callers 11

readlinesMethod · 0.95
pytest_unconfigureFunction · 0.45
create_new_pasteFunction · 0.45
runMethod · 0.45
get_dataMethod · 0.45
_read_pycFunction · 0.45
read_binaryMethod · 0.45
read_textMethod · 0.45
computehashMethod · 0.45
pyimportMethod · 0.45
copychunkedFunction · 0.45

Calls 1

openMethod · 0.95

Tested by 1

runMethod · 0.36