From: FrancoGag Date: Mon, 9 Nov 2015 20:09:59 +0000 (-0300) Subject: Renamed removeDups() to removeDupsAndExcl() X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=d1dba2066330592ffb8d6fc4a6b677e0859b599a;p=stevenblack-hosts.git Renamed removeDups() to removeDupsAndExcl() Renamed removeDups() to reflect that now the function also excludes domains and keywords in the whitelist. --- 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: