mirror of
https://github.com/minoplhy/filters-converter.git
synced 2024-12-22 10:08:08 +00:00
remove '
This commit is contained in:
parent
8a6201c399
commit
e88e725a54
@ -44,7 +44,7 @@ with open(infile, 'w') as f: # load file in write mode
|
||||
f.write('\n'.join([line + ' CNAME .\n'])) # add CNAME . if file does not start with ;
|
||||
f.close()
|
||||
|
||||
remove_words = ['localhost','localhost.localdomain','local','broadcasthost','loopback','ip6-localnet','ip6-mcastprefix','ip6-allnodes','ip6-allrouters','ip6-allhosts','ip6-loopback',]
|
||||
remove_words = ['localhost','localhost.localdomain','local','broadcasthost','loopback','ip6-localnet','ip6-mcastprefix','ip6-allnodes','ip6-allrouters','ip6-allhosts','ip6-loopback']
|
||||
|
||||
with open(infile, 'r') as f:
|
||||
lines = f.read().splitlines()
|
||||
|
Loading…
Reference in New Issue
Block a user