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

Method readtext

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

Source from the content-addressed store, hash-verified

63 self.create_symlink(p.joinpath('brokenLinkLoop'), 'brokenLinkLoop')
64
65 def readtext(self, p):
66 with p.zip_file.open(vfspath(p), 'r') as f:
67 f = io.TextIOWrapper(f, encoding='utf-8')
68 return f.read()
69
70 def readbytes(self, p):
71 with p.zip_file.open(vfspath(p), 'r') as f:

Callers 3

test_copy_dirMethod · 0.45
test_open_wMethod · 0.45

Calls 3

readMethod · 0.95
vfspathFunction · 0.90
openMethod · 0.45

Tested by 3

test_copy_dirMethod · 0.36
test_open_wMethod · 0.36