diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-24 13:25:50 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-24 13:53:37 +0100 |
| commit | 1a0cfea9b6e070540c14d7121f88612b0fb94c19 (patch) | |
| tree | b54392f7eb2ca350dc79cdd8ff7b86b6c24afa87 /kconfiglib.py | |
| parent | f2f69e6f60eb75d054383579454038a80f3d9f0e (diff) | |
Simplify _T_IF choice check
Already have the parent in 'parent'.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index e0f1c99..71810bd 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1474,7 +1474,7 @@ class Kconfig(object): node.linenr = self._linenr # See similar code in _parse_properties() - if isinstance(node.parent.item, Choice): + if isinstance(parent.item, Choice): parent_dep = parent.item else: parent_dep = parent.dep |
