repo.or.cz
/
lilypond
/
mpolesky.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix #1009 (\transpose error with pitch alteration > double).
[lilypond/mpolesky.git]
/
scripts
/
auxiliar
/
strip-whitespace.py
blob
10da1162c568cf6808baad254fe082c861d1ce5c
1
#!/usr/bin/env python
2
import
sys
3
4
for
fname
in
sys
.
argv
[
1
:]:
5
fd
=
open
(
fname
,
mode
=
'U'
)
# open in universal newline mode
6
lines
= []
7
for
line
in
fd
.
readlines
():
8
lines
.
append
(
line
.
rstrip
() )
9
fd
.
close
()
10
11
fd
=
open
(
fname
,
mode
=
'w'
)
12
fd
.
seek
(
0
)
13
for
line
in
lines
:
14
fd
.
write
(
line
+
'
\n
'
)
15
fd
.
close
()
16