☰
Debian Codegraph
@
1.12.1-2
1.12.1-1
1.12.0-3
1.12.0-2
1.11.1-3
1.11.1-2
/
/
test cases
/
common
/
179 escape and unicode
/
file.py
☽
☼
test cases/common/179 escape and unicode/file.py
code
plain
raw
Apache-2.0
2012-2021 The Meson development team
debian/copyright
1
#!/usr/bin/env python3
2
3
import sys
4
import os
5
6
with open(sys.argv[1]) as fh:
7
content = fh.read().replace("{NAME}", sys.argv[2])
8
9
with open(os.path.join(sys.argv[3]), 'w', errors='replace') as fh:
10
fh.write(content)