git.99rst.org
/
stevenblack-hosts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
9de8ea4
)
Variable 'target' is never used.
author
Steven Black
<redacted>
Sun, 7 Feb 2016 20:35:36 +0000
(15:35 -0500)
committer
Steven Black
<redacted>
Sun, 7 Feb 2016 20:35:36 +0000
(15:35 -0500)
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index 9b202c217f3f53816edc66137c4b47d44ddd9675..3a382b91a278ae18e569e5d537c58568ca29ec09 100644
(file)
--- a/
updateHostsFile.py
+++ b/
updateHostsFile.py
@@
-261,7
+261,7
@@
def removeDupsAndExcl( mergeFile ):
def normalizeRule(rule):
result = re.search(r'^[ \t]*(\d+\.\d+\.\d+\.\d+)\s+([\w\.-]+)(.*)', rule )
if result:
-
target,
hostname, suffix = result.groups()
+ 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