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

Method __read_file

test/BoostBuild.py:1055–1066  ·  view source on GitHub ↗
(self, name, exact=False)

Source from the content-addressed store, hash-verified

1053 index += 1
1054
1055 def __read_file(self, name, exact=False):
1056 name = self.adjust_names(name)[0]
1057 result = ""
1058 try:
1059 if exact:
1060 result = self.read(name)
1061 else:
1062 result = self.read_and_strip(name).replace("\\", "/")
1063 except (IOError, IndexError):
1064 print "Note: could not open file", name
1065 self.fail_test(1)
1066 return result
1067
1068 def __wait_for_time_change(self, path, touch, last_build_time):
1069 """

Callers 2

expect_content_linesMethod · 0.95
expect_contentMethod · 0.95

Calls 4

adjust_namesMethod · 0.95
readMethod · 0.95
read_and_stripMethod · 0.95
fail_testMethod · 0.95

Tested by

no test coverage detected