host: skip lines beginning with new line

pull/4914/head
Rene Moser 11 years ago
parent ca5e5cfebc
commit a61f46f4f0

@ -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…
Cancel
Save