MCPcopy Index your code
hub / github.com/RustPython/RustPython / readtext

Method readtext

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

Source from the content-addressed store, hash-verified

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

Callers 3

test_copy_dirMethod · 0.45
test_open_wMethod · 0.45

Calls 3

readMethod · 0.95
strFunction · 0.85
openMethod · 0.45

Tested by 3

test_copy_dirMethod · 0.36
test_open_wMethod · 0.36