mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-04 19:46:02 +02:00
Issue #118: fix – resolve problems with whitelisting domains.
This commit is contained in:
parent
05fb726082
commit
60c43d299b
|
@ -292,7 +292,8 @@ def removeDupsAndExcl(mergeFile):
|
|||
if os.path.isfile(settings["whitelistfile"]):
|
||||
with open(settings["whitelistfile"], "r") as ins:
|
||||
for line in ins:
|
||||
if line.rstrip():
|
||||
line = line.strip(" \t\n\r")
|
||||
if line and not line.startswith("#"):
|
||||
settings["exclusions"].append(line)
|
||||
|
||||
if not os.path.exists(settings["outputpath"]):
|
||||
|
|
Loading…
Reference in New Issue
Block a user