From 375506d2f65baf1727a5963fa84826c4066f8275 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 19 Sep 2017 09:40:58 +0200 Subject: File writing nit --- kconfiglib.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kconfiglib.py b/kconfiglib.py index 773c614..f4467d3 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -521,14 +521,12 @@ class Config(object): with open(filename, "w") as f: # Write header if header is not None: - f.write(_comment(header)) - f.write("\n") + f.write(_comment(header) + "\n") # Build and write configuration conf_strings = [] _make_block_conf(self.top_block, conf_strings.append) - f.write("\n".join(conf_strings)) - f.write("\n") + f.write("\n".join(conf_strings) + "\n") def eval(self, s): """Returns the value of the expression 's' -- where 's' is represented -- cgit v1.2.3