repo.or.cz
/
fast-export.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add dos2unix plugin
[fast-export.git]
/
plugins
/
dos2unix
/
__init__.py
blob
bf676a0378c840e78ba594fd3b8510cce5df6735
1
def
build_filter
(
args
):
2
return
Filter
(
args
)
3
4
class
Filter
():
5
def
__init__
(
self
,
args
):
6
pass
7
8
def
file_data_filter
(
self
,
file_data
):
9
file_ctx
=
file_data
[
'file_ctx'
]
10
if not
file_ctx
.
isbinary
():
11
file_data
[
'data'
] =
file_data
[
'data'
].
replace
(
'
\r\n
'
,
'
\n
'
)