diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-06 04:24:26 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-06 04:24:26 +0200 |
| commit | 71d9bb31f91fbd8f4e38e47fce54fd3221b3f8f5 (patch) | |
| tree | c51ace10578b84a8b74e603376cba8f88e66f6cf /kconfiglib.py | |
| parent | 85d32e329daf4efbd64c583e38e92e5cae6bd7da (diff) | |
Add some test cases for malformed expressions.
Also fix a tokenizer nit: a '!' at the end of a line can be tokenized
(though it's meaningless).
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 81659ca..fc5d14f 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -751,9 +751,7 @@ class Config(object): i += 1 elif c == "!": - if i >= len(s): - _tokenization_error(s, filename, linenr) - if s[i] == "=": + if i < len(s) and s[i] == "=": append(T_UNEQUAL) i += 1 else: |
