Renamed removeDups() to reflect that now the function also excludes domains and keywords in the whitelist.
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.')
return mergeFile
-def removeDups(mergeFile):
+def removeDupsAndExcl(mergeFile):
global numberOfRules
if os.path.isfile(WHITELIST_FILE):
with open(WHITELIST_FILE, "r") as ins: