diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-10-01 00:01:46 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-10-01 00:27:08 +0200 |
| commit | 6aab113523a52c2767832a3df35c6c82d3197c60 (patch) | |
| tree | b709b5f89d057227bd017c44166cd2dccc45c585 | |
| parent | 53db3ee278f5935751baa46d4999a0b0a469f1de (diff) | |
Don't set filename and linenr on 'if' menu nodes
There's no way to query them later, as 'if's get flattened and removed,
and they're not needed during parsing either.
| -rw-r--r-- | kconfiglib.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index c346c74..e9fee54 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2530,9 +2530,6 @@ class Kconfig(object): node = MenuNode() node.item = node.prompt = None node.parent = parent - node.filename = self._filename - node.linenr = self._linenr - node.dep = self._expect_expr_and_eol() self._parse_block(_T_ENDIF, node, node) |
