some comments
+def copyWithWarning(src, dest):
naming: copy_with_warning
+ readFile = open(src, 'r')
'r' : superfluous
+ readFileLines = readFile.readlines()
+ readFile.close()
superfluous. Happens automatically if it goes out of scope.
+ writeFile = open(dest, 'w')
+ writeFile.write('%% Do not edit this file; it is
auto-generated from LSR!\n')
+ for line in readFileLines:
+ writeFile.write(line)
+ writeFile.close()
shorter :
msg = '%% .. '
open (dest, 'w').write (msg + open (src).read())
2007/4/11, Graham Percival <[EMAIL PROTECTED]>:
Ok, done. I was hoping that the README in that directory would be
enough, but it's easy to add such a warning automatically.
--
Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen
_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel