Commit a61f46f4 by Rene Moser

host: skip lines beginning with new line

parent ca5e5cfe
...@@ -100,7 +100,7 @@ class Host(object): ...@@ -100,7 +100,7 @@ class Host(object):
f.close() f.close()
for lineno, line in enumerate(self._hostsfile_lines): for lineno, line in enumerate(self._hostsfile_lines):
if line.startswith("#"): if line.startswith("#") or line.startswith("\n"):
continue continue
ip = line.split()[0:1] ip = line.split()[0:1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment