summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 6c59a38..f068a2c 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3645,6 +3645,8 @@ def _sep_lines(*args):
def _comment(s):
"""Returns a new string with "# " inserted before each line in 's'."""
+ if not s:
+ return "#"
return "\n".join(["#" + line for line in s.splitlines()])
def _get_lines(filename):