MCPcopy Create free account
hub / github.com/apache/thrift / read_file

Function read_file

lib/py/setup.py:62–73  ·  view source on GitHub ↗

Return the contents of a file Arguments: - path: path to the file Returns: - contents of the file

(path)

Source from the content-addressed store, hash-verified

60
61
62def read_file(path):
63 """
64 Return the contents of a file
65
66 Arguments:
67 - path: path to the file
68
69 Returns:
70 - contents of the file
71 """
72 with open(path, "r") as desc_file:
73 return desc_file.read().rstrip()
74
75
76def run_setup(with_binary):

Callers 1

run_setupFunction · 0.70

Calls 1

readMethod · 0.65

Tested by

no test coverage detected