( f, content)
| 43 | out.close() |
| 44 | |
| 45 | def 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 | |
| 57 | def remove_comment( content ): |
| 58 | comment=True |