From a61f46f4f036b0b41f7b20dd55db62893914a18a 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 --- library/system/host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/host b/library/system/host index c968360eb6..f0daaac861 100644 --- a/library/system/host +++ b/library/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]