MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / __writefile

Method __writefile

tools/reduce.py:90–93  ·  view source on GitHub ↗
(self, filename, filedata)

Source from the content-addressed store, hash-verified

88 return False
89
90 def __writefile(self, filename, filedata):
91 with open(filename, 'wt') as f:
92 for line in filedata:
93 f.write(line)
94
95 def replaceandrun(self, what, filedata, i, line):
96 print(what + ' ' + str(i + 1) + '/' + str(len(filedata)) + '..')

Callers 4

writefileMethod · 0.95
writeorigfileMethod · 0.95
writebackupfileMethod · 0.95
writetimeoutfileMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected