Changeset View
Changeset View
Standalone View
Standalone View
src/test/data/generate_asmap.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2020 The Bitcoin developers | # Copyright (c) 2020 The Bitcoin developers | ||||
from pathlib import Path | |||||
import sys | import sys | ||||
from pathlib import Path | |||||
def main(input_file, output_file): | def main(input_file, output_file): | ||||
with open(input_file, 'rb') as f: | with open(input_file, 'rb') as f: | ||||
contents = f.read() | contents = f.read() | ||||
with open(output_file, "w", encoding="utf-8") as f: | with open(output_file, "w", encoding="utf-8") as f: | ||||
f.write( | f.write( | ||||
Show All 13 Lines |