diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-03-20 06:29:14 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-03-20 06:32:19 +0100 |
| commit | c7ac6f86913a65c27d939964ae826c4a897883b0 (patch) | |
| tree | eff2b7a0d87e5fc7450d46a65daa59520b6747bd /kconfiglib.py | |
| parent | b0629268f67fe1bff0f7314dbf561c4718c2ff79 (diff) | |
Add parent deps to the right in _T_IF
Consistent with how dependencies are propagated elsewhere.
Get rid of the 'parent_dep' variable too.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index bef75ee..53f89d6 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1899,11 +1899,11 @@ class Kconfig(object): node.filename = self._filename node.linenr = self._linenr - # See similar code in _parse_properties() - parent_dep = parent.item if isinstance(parent.item, Choice) \ - else parent.dep - - node.dep = self._make_and(parent_dep, self._parse_expr(True)) + node.dep = self._make_and( + self._parse_expr(True), + # See similar code in _parse_properties() + parent.item if isinstance(parent.item, Choice) + else parent.dep) self._parse_block(_T_ENDIF, node, node, visible_if_deps) node.list = node.next |
