in tools/torset-tool/torset-tool.py [0:0]
def write_hosts_by_torset(self) -> None:
for torset, hosts in self.torsets.items():
output_file = f"{self.output_dir}/{torset}_hosts.txt"
with open(output_file, 'w') as f:
for host in hosts:
f.write(f"{host}\n")