Skip to content

Commit

Permalink
Optimizing workflows version.x.n
Browse files Browse the repository at this point in the history
  • Loading branch information
spirillen committed Jan 18, 2025
1 parent 876cba8 commit 0de990a
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions tools/sort_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,6 @@ def sort_file_alphanum(file_path, valid_tlds):
for entry in invalid_entries:
print(entry.strip())

with open(file_path, 'w') as file:
if header:
file.write(header)
file.writelines(lines)
file.write("") # Ensure no additional newline

def sort_file_tld(file_path, valid_tlds):
with open(file_path, 'r') as file:
lines = file.readlines()
Expand All @@ -171,12 +165,6 @@ def sort_file_tld(file_path, valid_tlds):
for entry in invalid_entries:
print(entry.strip())

with open(file_path, 'w') as file:
if header:
file.write(header)
file.writelines(lines)
file.write("") # Ensure no additional newline

def sort_file_rpz_nsdname(file_path, valid_tlds):
with open(file_path, 'r') as file:
lines = file.readlines()
Expand All @@ -202,12 +190,6 @@ def sort_file_rpz_nsdname(file_path, valid_tlds):
for entry in invalid_entries:
print(entry.strip())

with open(file_path, 'w') as file:
if header:
file.write(header)
file.writelines(lines)
file.write("") # Ensure no additional newline

def sort_file_hierarchical(file_path, valid_tlds):
with open(file_path, 'r') as file:
lines = file.readlines()
Expand Down Expand Up @@ -243,12 +225,6 @@ def sort_file_hierarchical(file_path, valid_tlds):
for entry in invalid_entries:
print(entry.strip())

with open(file_path, 'w') as file:
if header:
file.write(header)
file.writelines(lines)
file.write("") # Ensure no additional newline

def sort_file_onion(file_path, valid_tlds):
with open(file_path, 'r') as file:
lines = file.readlines()
Expand All @@ -265,12 +241,6 @@ def sort_file_onion(file_path, valid_tlds):
for entry in invalid_entries:
print(entry.strip())

with open(file_path, 'w') as file:
if header:
file.write(header)
file.writelines(lines)
file.write("") # Ensure no additional newline

def sort_file_ip(file_path):
with open(file_path, 'r') as file:
lines = file.readlines()
Expand Down

0 comments on commit 0de990a

Please sign in to comment.