Renamed removeDups() to removeDupsAndExcl()

Renamed removeDups() to reflect that now the function also excludes domains and keywords in the whitelist.
This commit is contained in:
FrancoGag
2015-11-09 17:09:59 -03:00
parent e1d41823bd
commit d1dba20663
+2 -2
View File
@@ -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: