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

Method readbytes

Lib/test/test_pathlib/support/zip_path.py:70–72  ·  view source on GitHub ↗
(self, p)

Source from the content-addressed store, hash-verified

68 return f.read()
69
70 def readbytes(self, p):
71 with p.zip_file.open(vfspath(p), 'r') as f:
72 return f.read()
73
74 readlink = readtext
75

Callers 8

test_copy_fileMethod · 0.45
test_copy_file_emptyMethod · 0.45
test_copy_intoMethod · 0.45
test_open_wbMethod · 0.45
test_write_bytesMethod · 0.45
test_write_textMethod · 0.45

Calls 3

vfspathFunction · 0.90
openMethod · 0.45
readMethod · 0.45

Tested by 8

test_copy_fileMethod · 0.36
test_copy_file_emptyMethod · 0.36
test_copy_intoMethod · 0.36
test_open_wbMethod · 0.36
test_write_bytesMethod · 0.36
test_write_textMethod · 0.36