Sign in
fuchsia
/
third_party
/
swift
/
5a624ebbb6ce8c8afeef1a0c8daec32db4ba4cc3
/
.
/
test
/
Serialization
/
Inputs
/
binary_sub.py
blob: f3f84eb1c5ff41ec72f4afee6845a64d2cd778f3 [
file
] [
log
] [
blame
]
#!/usr/bin/env python
import
sys
(
_
,
old
,
new
)
=
sys
.
argv
assert
(
len
(
old
)
==
len
(
new
))
data
=
sys
.
stdin
.
read
()
sys
.
stdout
.
write
(
data
.
replace
(
old
,
new
))