Renamed removeDups() to removeDupsAndExcl()
authorFrancoGag <redacted>
Mon, 9 Nov 2015 20:09:59 +0000 (17:09 -0300)
committerFrancoGag <redacted>
Mon, 9 Nov 2015 20:09:59 +0000 (17:09 -0300)
Renamed removeDups() to reflect that now the function also excludes domains and keywords in the whitelist.

updateHostsFile.py

index b6be9c8b24e53fd2912a8c626c6f65366422a0b4..de8502e162b0d5a7ffa6d33ed01ac6dc5cc59f68 100755 (executable)
@@ -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:
git clone https://git.99rst.org/PROJECT