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:
a7c7380
)
Don't print '::1 localhost'
author
FrancoGag
<redacted>
Sat, 21 Nov 2015 13:19:25 +0000
(10:19 -0300)
committer
FrancoGag
<redacted>
Sat, 21 Nov 2015 13:19:25 +0000
(10:19 -0300)
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index 9d4df4b59dfad7cd749a4e1da4b0386ae75ffa67..2f58087272c1250eb1489200e8a7369f5f7f48a1 100755
(executable)
--- a/
updateHostsFile.py
+++ b/
updateHostsFile.py
@@
-232,6
+232,8
@@
def removeDupsAndExcl( mergeFile ):
# Cross-python write
writeData( finalFile, line )
continue
+ if '::1' in line:
+ continue
strippedRule = stripRule( line ) #strip comments
if len( strippedRule ) == 0:
git clone https://git.99rst.org/PROJECT