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

Function add_python_copyright

scripts/add_copyright.py:45–55  ·  view source on GitHub ↗
( f, content)

Source from the content-addressed store, hash-verified

43 out.close()
44
45def add_python_copyright( f, content):
46 global mit_copyright
47 out = open(f,'w')
48 for line in mit_copyright.split('\n')[:-1]:
49 out.write("#");
50 if line.strip() != "":
51 out.write(" %s" %line)
52 out.write("\n")
53 out.write(content.strip())
54 out.write("\n")
55 out.close()
56
57def remove_comment( content ):
58 comment=True

Callers 1

check_fileFunction · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected