From ee9dc73a63f7f13fc8f4c302b455687e8bce47a1 Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Fri, 15 Nov 2013 13:40:51 +0100 Subject: [PATCH] host: skip lines beginning with new line --- system/host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/host b/system/host index c968360eb62..f0daaac861d 100644 --- a/system/host +++ b/system/host @@ -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]