mirror of
https://github.com/minoplhy/filters-maker.git
synced 2024-12-22 18:18:13 +00:00
Update 'maker_hosts.py'
This commit is contained in:
parent
f22173c2c0
commit
d70adba16e
@ -10,13 +10,13 @@ def linecounter(incoming):
|
||||
pass
|
||||
return i + 1
|
||||
|
||||
def hostsbuilding(excluded ,incoming):
|
||||
def hostsbuilding(excluded ,incoming) ,output:
|
||||
ankstanop = linecounter(incoming)
|
||||
with open(excluded ,'r') as f:
|
||||
exclude = f.read().split()
|
||||
with open(incoming ,'r') as f:
|
||||
lines = f.read().splitlines() # read lines
|
||||
with open(incoming ,'w') as f:
|
||||
with open(output ,'w') as f:
|
||||
f.write('# Title : Minoplhy Personal Blocklist\n')
|
||||
f.write('# Description : My Very Personal DNS Blocklist plus crawling from the source\n')
|
||||
f.write('# Source : Resources/Source.txt\n')
|
||||
|
Loading…
Reference in New Issue
Block a user