From: FrancoGag Date: Sat, 21 Nov 2015 13:19:25 +0000 (-0300) Subject: Don't print '::1 localhost' X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=459fb014717f4f1ec77d6355aa7ae501c504c6f7;p=stevenblack-hosts.git Don't print '::1 localhost' --- diff --git a/updateHostsFile.py b/updateHostsFile.py index 9d4df4b59..2f5808727 100755 --- 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: