DPR-blocked-sites/runners/z_remove_duplicates.py
Maxim Slipenko b748fb1c96 Добавляет IP-диапазоны Google (#1)
Co-authored-by: Maxim Slipenko <no-reply@maxim.slipenko.com>
Reviewed-on: #1
2022-09-16 15:15:04 +00:00

6 lines
186 B
Python

def main(file_data: list[str]):
uniqlines = list(dict.fromkeys(file_data))
out = open('ips.txt', 'w')
out.writelines(uniqlines)
out.truncate(out.tell()-1)
out.close()