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

Function write_to

tools/creduce.py:19–23  ·  view source on GitHub ↗
(file, lines)

Source from the content-addressed store, hash-verified

17 print(line)
18
19def write_to(file, lines):
20 content = list((line + "\n" for line in lines))
21 if (len(content) > 0):
22 with open(file, 'w') as f:
23 f.writelines(content)
24
25def make_executable(p):
26 os.chmod(p, 509)

Callers 1

writeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected