MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / main

Function main

scripts/ensure_single_eol.py:34–41  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

32
33
34def main(args):
35 f_p = pl.Path(args.file)
36 with open(f_p, "r") as f:
37 lines = f.read()
38 lines = lines.rstrip(os.linesep)
39 lines += os.linesep
40 with open(f_p, "w") as f:
41 f.write(lines)
42
43
44if __name__ == "__main__":

Callers 1

Calls 1

readMethod · 0.80

Tested by

no test coverage detected