MCPcopy Create free account
hub / github.com/boostorg/build / _get_text

Function _get_text

v2/test/tree.py:200–206  ·  view source on GitHub ↗

Return a string with the textual contents of a file at PATH.

(path)

Source from the content-addressed store, hash-verified

198
199
200def _get_text(path):
201 """Return a string with the textual contents of a file at PATH."""
202 fp = open(path, 'r')
203 try:
204 return fp.read()
205 finally:
206 fp.close()
207
208
209def _handle_dir(path):

Callers 1

_handle_dirFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected