diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-23 08:02:09 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-23 08:02:09 +0200 |
| commit | 39f2f681e0356ae972e1ecae6a916d61094df88a (patch) | |
| tree | 1a5dc2f3c9b13f118127c5881971a38d493888d3 /kconfiglib.py | |
| parent | 35996e28ed2bb6e0cd6226e1580cfef2a958d3df (diff) | |
Ignore '-style quotes in .config files.
This is what the C implementation does, and it simplifies the code a
bit.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index ef2c4c8..df9b3a8 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -451,8 +451,8 @@ class Config(object): if set_match: name, val = set_match.groups() - if val.startswith(('"', "'")): - if len(val) < 2 or val[-1] != val[0]: + if val[0] == '"': + if len(val) < 2 or val[-1] != '"': _parse_error(line, "malformed string literal", line_feeder.filename, line_feeder.linenr) # Strip quotes and remove escapings. The unescaping |
