repo.or.cz
/
xmlmerge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
TODO note about '{' and '}'
[xmlmerge.git]
/
convert_newlines.py
blob
f1510942771fdfcf2aeb006b46025326131277f6
1
#!/usr/bin/env python
2
3
import
os
4
5
test_dir
=
"tests"
6
for
fn
in
sorted
(
os
.
listdir
(
test_dir
)):
7
full_fn
=
os
.
path
.
join
(
test_dir
,
fn
)
8
s
=
file
(
full_fn
,
"rb"
).
read
()
9
file
(
full_fn
,
"wb"
).
write
(
s
.
replace
(
"
\r\n
"
,
"
\n
"
))