From 363bcfb2330ad965dc70c0983049f621ae3b0e14 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 24 Oct 2018 09:43:26 -0400 Subject: [PATCH] logextract: Make sure config files end with a newline Signed-off-by: Kevin O'Connor --- scripts/logextract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/logextract.py b/scripts/logextract.py index 5ac52915..1151e05f 100755 --- a/scripts/logextract.py +++ b/scripts/logextract.py @@ -41,7 +41,7 @@ class GatherConfig: self.comments.append(comment) def write_file(self): f = open(self.filename, 'wb') - f.write('\n'.join(self.comments + self.config_lines)) + f.write('\n'.join(self.comments + self.config_lines).strip() + '\n') f.close()