mirror of
https://github.com/minoplhy/filters-converter.git
synced 2024-12-22 10:08:08 +00:00
Regex Fixing round 3
This commit is contained in:
parent
c61a4a2624
commit
442657d322
@ -15,7 +15,7 @@ with open(infile) as f:
|
||||
file[i] = re.sub('^:: ', '', file[i])
|
||||
file[i] = re.sub('^::1 ', '' ,file[i])
|
||||
file[i] = re.sub('^127.0.0.1', '', file[i])
|
||||
file[i] = re.sub('^0.0.0.0', '', file[i])
|
||||
file[i] = re.sub('^0.0.0.0 0.0.0.0', '', file[i])
|
||||
with open(infile, 'w') as f1:
|
||||
f1.writelines(["%s\n" % item for item in file])
|
||||
f.close()
|
||||
|
Loading…
Reference in New Issue
Block a user