diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-19 09:40:58 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-19 09:41:25 +0200 |
| commit | 375506d2f65baf1727a5963fa84826c4066f8275 (patch) | |
| tree | deddb50e52c5abb6d0f51484731c36e92b05589f /kconfiglib.py | |
| parent | 07fad1d303841647f64586062bbcf972d1f3a10f (diff) | |
File writing nit
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 6 |
1 files 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 |
