Revert "Variable 'target' is never used."
authorSteven Black <redacted>
Sun, 7 Feb 2016 20:53:37 +0000 (15:53 -0500)
committerSteven Black <redacted>
Sun, 7 Feb 2016 20:53:37 +0000 (15:53 -0500)
This reverts commit 3d281af027df29105ffe2051041ded09a8c2372c.

updateHostsFile.py

index 3a382b91a278ae18e569e5d537c58568ca29ec09..9b202c217f3f53816edc66137c4b47d44ddd9675 100644 (file)
@@ -261,7 +261,7 @@ def removeDupsAndExcl( mergeFile ):
 def normalizeRule(rule):
        result = re.search(r'^[ \t]*(\d+\.\d+\.\d+\.\d+)\s+([\w\.-]+)(.*)', rule )
        if result:
-               hostname, suffix = result.groups()
+               target, hostname, suffix = result.groups()
                hostname = hostname.lower() # explicitly lowercase hostname
                if suffix is not '':
                        # add suffix as comment only, not as a separate host
git clone https://git.99rst.org/PROJECT