summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kconfiglib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 025e6cc..59373f0 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3598,6 +3598,8 @@ def _strip_quotes(s, line, filename, linenr):
"""Removes any quotes surrounding 's' if it has them; otherwise returns 's'
unmodified."""
s = s.strip()
+ if not s:
+ return s
if s[0] == '"' or s[0] == "'":
if len(s) < 2 or s[-1] != s[0]:
_parse_error(line,