From d1dba2066330592ffb8d6fc4a6b677e0859b599a Mon Sep 17 00:00:00 2001 From: FrancoGag Date: Mon, 9 Nov 2015 17:09:59 -0300 Subject: [PATCH] Renamed removeDups() to removeDupsAndExcl() Renamed removeDups() to reflect that now the function also excludes domains and keywords in the whitelist. --- updateHostsFile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updateHostsFile.py b/updateHostsFile.py index b6be9c8b2..de8502e16 100755 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -93,7 +93,7 @@ def main(): promptForUpdate() promptForExclusions() mergeFile = createInitialFile() - finalFile = removeDups(mergeFile) + finalFile = removeDupsAndExcl(mergeFile) finalizeFile(finalFile) updateReadme(numberOfRules) printSuccess('Success! Your shiny new hosts file has been prepared.\nIt contains ' + "{:,}".format( numberOfRules ) + ' unique entries.') @@ -205,7 +205,7 @@ def createInitialFile(): return mergeFile -def removeDups(mergeFile): +def removeDupsAndExcl(mergeFile): global numberOfRules if os.path.isfile(WHITELIST_FILE): with open(WHITELIST_FILE, "r") as ins: