host: skip lines beginning with new line
This commit is contained in:
parent
ca5e5cfebc
commit
a61f46f4f0
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class Host(object):
|
|||
f.close()
|
||||
|
||||
for lineno, line in enumerate(self._hostsfile_lines):
|
||||
if line.startswith("#"):
|
||||
if line.startswith("#") or line.startswith("\n"):
|
||||
continue
|
||||
|
||||
ip = line.split()[0:1]
|
||||
|
|
Loading…
Reference in a new issue